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
Questions
Which of the following are the characteristics of wizard page
- overlapped
- style
- enabled
- border
Dialog box cannot be minimized, maximized, or restored. A dialog box does not have any other system button but Close.
- True
- False
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.
- b only
- a and b
- b and c
- all the above
The CControlBar class gives standard implementation for:
- Resizing te control bar
- Aligning the control bar to the top, bottom, or either side of the frame.
- Supporting the implementation of derived classes.
- Allocating control item arrays.
The permitted ways to destroy a Windows object are
- CWnd Destroy member function
- Explicitly deleting with the delete operator.
- Manually closing the windows
- Calling CWnd::DestroyWindow or the Windows API DestroyWindow.
The application that uses the regular DLL does not have to use MFC and does not have to be a Visual C++ application.
- True
- False
Which substitutes two strings for the format characters "%1" and "%2" in a string contained in the string table
- AfxFormatSubString
- AfxFormatString
- AfxFormatString1
- AfxFormatString2
In which Year Java Swing was released?
- 1995
- 1996
- 1997
- 1998
What is SWT?
- Standard window toolkit
- Standard widget toolkit
- Standard window tool
- Standard widget tool
What is an event handler ?
- Response to a specific event.
- Events that handle response
- Handle screen event.
- Handle specific function.
Which containers use a FlowLayout as their default layout?
- Panel and Applet
- Panel and Frame
- Frame and Applet
- Panel and Jframe
What method is used to specify a container's layout?
- SetLayout
- SetBoundries
- SetBorder
- SetLayouts
Which of the following is NOT a value type?
- Struct
- Delegate
- string
- Enumeration
A boolean in C# is
- BOOL
- bool
- Boolean
- boolean
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 ();
- True
- False
True or False. Like in C++, using exception does carry some performance penalty
- True
- False
Which of the following is jagged array creation?
- string [,,] aMatrix;
- string [][][] aMatrix;
- int [][]aInt= new int[3][];
- None of the above.
- JavaScript is ...
- same as Java
- kind of like Java
- different than Java
- written part of Java
- JavaScript is ...
- subjective
- objective
- evil
- object based
- To comment out a line in JavaScript ...
- Precede it with two forward slashes, i.e. '//'
- Precede it with an asterisk and a forward slash, i.e. '*/'
- Precede it with an asterisk, i.e. '*'
- Precede it with a forward slash and an asterisk, i.e. '/*'