What would best replace the “?” on Line 4 in the figure?
Begin to
get x
get y
?
sum= x + y + z
print sum
End
A.
get x + z
B.
get z
C.
print x
D.
print y
B.
get z
C. Must begin with a letter
C. Syntax Error
Sara thought her program would calculate grade point averages, but the
program listed the highest grade instead. What type of error is this?
A. Dynamic error
B. Logic error
C. Runtime error
D. Syntax error
B. Logic Error
Which type of error produces undesired or unexpected results?
A. Dynamic error
B. Logic error
C. Run-time error
D. Syntax error
C. Run-time error
What is an appropriate name for a textbox according to Hungarian
notation?
A. $Textbox
B. BoxName
C. MONEY_TEXT
D. txtName
D. txtName
Which data type is appropriate to store the value 75.9?
A. Boolean
B. Double
C. Integer
D. String
B. Double
If you assign a number such as 3.768 to a double variable, what will be
stored in the memory location?
A. 0
B. 3
C. 3.768
D. 4
C. 3.768
Greg wants to change the size of the text in a label. Which label property
should he change?
A. Font
B. Text
C. Autosize
D. (Name)
A. Font
Given the following property value, which RadioButton has been
selected?
radChocolate.Checked= true
radStrawberry.Checked= false
radVanilla.Checked= false
radLemon.Checked= false
A. radChocolate
B. radStrawberry
C. radVanilla
D. radLemon
A. radChocolate
Which statement would change the color of the form to blue?
A. BackColor= Color.Blue
B. BackColor(Color.Blue)
C. BackColor.Text= Color.Blue
D. BackColor= Blue
A. BackColor= Color.Blue
Jamie is careful to use non-offensive language and to be considerate of
the feelings of others when she sends email messages. What does this
behavior exemplify?
A. Information age
B. Netiquette
C. Online Profiling
D. Privacy
B. Netiquette
What are the advantages of the Visual Basic language?
A. Derived directly from COBOL and BASIC
B. Hexadecimal code understood by the computer
C. Runs only on Apple computers
D. Simple, general-purpose, object-oriented
D. Simple, general-purple, object-oriented
Which statement best describes how World War II impacted computer
development?
A. The need for accuracy of military calculations for the trajectory of
artillery shells led the government to develop a computer.
B. The need for navigational systems to steer troops to landings led to
the development of sophisticated computers.
C. The use of vacuum tubes in visual displays during WWI led to the use
of tubes in computers.
D. The use of wiring in WWI communication instruments led to a
development of computers with wire houses.
C. The use of vacuum tubes in visual displays during WWI led to the use of tubes in computers.
What is the decimal representation of the binary number 10001?
A. 15
B. 17
C. 16
D. 18
B. 17