Transcript IS1102 MCQ1

IS1102 MCQ1

19/10/09

Q1. The three main logical operators are ________, _________, and ________.

(A) (B) (C) (D) And, Or, Not And, Not, If Or, Not, If False, And, True

Q2. A(n) _____________ allows a program to decide on a course of action based on whether a certain condition is true or false.

(A) (B) (C) (D) Or block If block And block Else block

Q3. Keywords in Visual Basic are words that (A) should be used when naming variables.

(B) are used to name controls, such as TextBox1, Command2, etc.

(C) have special meaning and should not be used when naming variables.

(D) are used as prefixes for control names (such as txt, btn, lbl, and lst).

Q4. Which of the following statements is a valid assignment statement?

(A) (B) (C) (D)

txtBox = "Hello World" "Hello World" = txtBox.Text

txtBox.Text = "Hello World" Text.txtBox = "Hello World"

(A) (B) (C) (D) Q5. What character is used to signify the beginning of a comment statement?

asterisk exclamation mark apostrophe backslash

Q6. Which of the properties in a control's list of properties is used to give the control a meaningful name? (A) (B) (C) (D) Text ContextMenu ControlName Name

Q7. Which of the following properties determines the words appearing in a form's title bar?

(A) (B) (C) (D) Text Caption Name Title

Q8. The Properties window plays an important role in the development of (A) Visual Basic applications. It is mainly used to change how objects look and feel.

(B) when opening programs stored on a hard drive.

(C) to allow the developer to graphically design program components.

(D) to set program related options like Program Name, Program Location, etc.