Tag: programming languages

Questions Related to programming languages

  1. input (height weight) 2. ;

  2. input age weight gender $;

  3. input height 1-3 weight 4-6 gender 7;

  4. input @1 height 2. @4 weight 2. @7 gender $1;


Correct Option: A

which is the Parent class of CWinApp?

  1. CWnd

  2. CFrameWnd

  3. CObject

  4. CWinThread


Correct Option: D
  1. CDocument::UpdateViews

  2. CDocument::UpdateAllViews

  3. CDocument::UpdateData(TRUE)

  4. CDocument::Modify(TRUE)


Correct Option: B
  1. public static int main(char args[])

  2. public static void main(String args[])

  3. public static void MAIN(String args[])

  4. public static void main(String args)

  5. public static void main(char args[])


Correct Option: B

which view class allows usage of document - view architecture with tree, list, and rich edit controls?

  1. CScrollView

  2. CListView

  3. CRichEditView

  4. CCtrlView


Correct Option: D

The principal base class for the Microsoft Foundation Class Library is

  1. CMenu

  2. CWnd

  3. CObject

  4. CWinApp


Correct Option: C
  1. A class that is abstract may not be instantiated.

  2. 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++.

  3. A static variable indicates there is only one copy of that variable.

  4. A method defined as private indicates that it is accessible to all other classes in the same package.


Correct Option: A,C

Which of the following are legal array declarations.

  1. int i[5][];

  2. int i[][];

  3. int []i[];

  4. int i[5][5];

  5. int[][] a;


Correct Option: B,C,E
  1. Main()

  2. WinMain()

  3. InitInstance()

  4. OnEXecute()


Correct Option: B