Java, MFC, and SAS Programming Quiz
Test your knowledge of Java programming concepts, Microsoft Foundation Classes (MFC) for Windows development, and SAS programming language fundamentals.
Questions
which characteristics can be set at design time using the Style property of dialog box?
- child
- popup
- Overlapped
- Borders
What does SAS stands for?
- Statistical Analyst System
- Statistical Analytical System
- Statistical Analysis System
- Statistical Analysis Software
If you are using the CFrameWnd::Create() method to create the window, you can specify the name of the menu using which argument.
- MenuCaption argument
- lpszMenuName argument
- MenuName argument
- splzMenuName argument
If you miss RUN; what happens?
- gives an abend
- gives an error
- no error
- complier ignores
Which of the following resources is invalid?
- Dialog box
- Tree view
- Property Sheet
- Menu
A property page is a dialog box, that can be positioned in front of, or behind of, another.
- True
- False
A property page is designed from a dialog box and it has which of the following characteristics?
- Visible
- Enable
- TitleBar
- Border
Which option is used to over ride the default nature of input statement, to read only required amount of data?
- TRUNCOVER
- MISSOVER
- FLOWOVER
- LOST CARD
Memory is a type of Device Context.
- True
- False
Which is not one of the input statement format?
- input (height weight) 2. ;
- input age weight gender $;
- input height 1-3 weight 4-6 gender 7;
- input @1 height 2. @4 weight 2. @7 gender $1;
which is the Parent class of CWinApp?
- CWnd
- CFrameWnd
- CObject
- CWinThread
When a user changes the content of one of the views, that view object calls which of the following function?
- CDocument::UpdateViews
- CDocument::UpdateAllViews
- CDocument::UpdateData(TRUE)
- CDocument::Modify(TRUE)
Which declaration of the main method below would allow a class to be started as a standalone program. Select the one correct answer.
- public static int main(char args[])
- public static void main(String args[])
- public static void MAIN(String args[])
- public static void main(String args)
- public static void main(char args[])
What all gets printed when the following code is compiled and run? Select the three correct answers. public class xyz { public static void main(String args[]) { for(int i = 0; i < 2; i++) { for(int j = 2; j>= 0; j--) { if(i == j) break; System.out.println("i=" + i + " j="+j); } } } }
- i=0 j=0
- i=0 j=1
- i=0 j=2
- i=1 j=0
- i=1 j=1
- i=1 j=2
which view class allows usage of document - view architecture with tree, list, and rich edit controls?
- CScrollView
- CListView
- CRichEditView
- CCtrlView
The principal base class for the Microsoft Foundation Class Library is
- CMenu
- CWnd
- CObject
- CWinApp
Which of the following is true. Select the correct answers.
- A class that is abstract may not be instantiated.
- The final keyword indicates that the body of a method is to be found elsewhere. The code is written in non-Java language, typically in C/C++.
- A static variable indicates there is only one copy of that variable.
- A method defined as private indicates that it is accessible to all other classes in the same package.
Which of the following are legal array declarations.
- int i[5][];
- int i[][];
- int []i[];
- int i[5][5];
- int[][] a;
In Win32, an application is created by a call to
- Main()
- WinMain()
- InitInstance()
- OnEXecute()
Which of the following statements related to Garbage Collection are correct.
- It is possible for a program to free memory at a given time.
- Garbage Collection feature of Java ensures that the program never runs out of memory.
- It is possible for a program to make an object available for Garbage Collection.
- The finalize method of an object is invoked before garbage collection is performed on the object.