Programming Languages: JavaScript, C#, C++, Java

Covers basic syntax and concepts from multiple programming languages including JavaScript, C#, C++ with MFC, and Java with AWT/Swing

20 Questions Published

Questions

Question 1 Multiple Choice (Multiple Answers)

Which of the following are the characteristics of wizard page

  1. overlapped
  2. style
  3. enabled
  4. border
Question 2 True/False

Dialog box cannot be minimized, maximized, or restored. A dialog box does not have any other system button but Close.

  1. True
  2. False
Question 3 Multiple Choice (Single Answer)

a)A CDocument is owned by a CDocTemplate. b)The CWinApp object owns all frame windows in the application. c)The CFrameWnd is responsible for creating windows in the client area of the frame.

  1. b only
  2. a and b
  3. b and c
  4. all the above
Question 4 Multiple Choice (Multiple Answers)

The CControlBar class gives standard implementation for:

  1. Resizing te control bar
  2. Aligning the control bar to the top, bottom, or either side of the frame.
  3. Supporting the implementation of derived classes.
  4. Allocating control item arrays.
Question 5 Multiple Choice (Multiple Answers)

The permitted ways to destroy a Windows object are

  1. CWnd Destroy member function
  2. Explicitly deleting with the delete operator.
  3. Manually closing the windows
  4. Calling CWnd::DestroyWindow or the Windows API DestroyWindow.
Question 6 True/False

The application that uses the regular DLL does not have to use MFC and does not have to be a Visual C++ application.

  1. True
  2. False
Question 7 Multiple Choice (Single Answer)

Which substitutes two strings for the format characters "%1" and "%2" in a string contained in the string table

  1. AfxFormatSubString
  2. AfxFormatString
  3. AfxFormatString1
  4. AfxFormatString2
Question 8 Multiple Choice (Single Answer)

In which Year Java Swing was released?

  1. 1995
  2. 1996
  3. 1997
  4. 1998
Question 9 Multiple Choice (Single Answer)

What is SWT?

  1. Standard window toolkit
  2. Standard widget toolkit
  3. Standard window tool
  4. Standard widget tool
Question 10 Multiple Choice (Single Answer)

What is an event handler ?

  1. Response to a specific event.
  2. Events that handle response
  3. Handle screen event.
  4. Handle specific function.
Question 11 Multiple Choice (Single Answer)

Which containers use a FlowLayout as their default layout?

  1. Panel and Applet
  2. Panel and Frame
  3. Frame and Applet
  4. Panel and Jframe
Question 12 Multiple Choice (Single Answer)

What method is used to specify a container's layout?

  1. SetLayout
  2. SetBoundries
  3. SetBorder
  4. SetLayouts
Question 13 Multiple Choice (Single Answer)

Which of the following is NOT a value type?

  1. Struct
  2. Delegate
  3. string
  4. Enumeration
Question 14 Multiple Choice (Single Answer)

A boolean in C# is

  1. BOOL
  2. bool
  3. Boolean
  4. boolean
Question 15 True/False

True or False. Is Foo.Print() a valid statement? Given a class Foo and it has a function public void Print (); Foo f = new Foo (); Foo.Print ();

  1. True
  2. False
Question 16 True/False

True or False. Like in C++, using exception does carry some performance penalty

  1. True
  2. False
Question 17 Multiple Choice (Single Answer)

Which of the following is jagged array creation?

  1. string [,,] aMatrix;
  2. string [][][] aMatrix;
  3. int [][]aInt= new int[3][];
  4. None of the above.
Question 18 Multiple Choice (Single Answer)
  1. JavaScript is ...
  1. same as Java
  2. kind of like Java
  3. different than Java
  4. written part of Java
Question 19 Multiple Choice (Single Answer)
  1. JavaScript is ...
  1. subjective
  2. objective
  3. evil
  4. object based
Question 20 Multiple Choice (Single Answer)
  1. To comment out a line in JavaScript ...
  1. Precede it with two forward slashes, i.e. '//'
  2. Precede it with an asterisk and a forward slash, i.e. '*/'
  3. Precede it with an asterisk, i.e. '*'
  4. Precede it with a forward slash and an asterisk, i.e. '/*'