sample midterm Flashcards
Method String.Format is used to _____________.
Question 1 options:
A) create constants
B) format Visual Basic statements
C) control how text is formatted
D) display the formatted text in a text box
C) control how text is formatted
The three types of control structures are sequence, selection, and __________.
Question 2 options:
A) redo
B) repeat
C) repetition
D) looping
C) repetition
If there are errors in an application, they appear in a window known as the ___________.
A) Task List
B) Error List
C) Output
D) Local
B) Error List
When a value is placed into a memory location, the value _________ the previous value in that location.
A) copies
B) adds itself to
C) replaces
D) moves
C) replaces
A(n) ________ help the user understand a control’s purpose.
A) Button
B) descriptive Label
C) TextBox
D) title bar
B) descriptive Label
A __________ is a control in which the user can enter data from a keyboard.
A) Button
B) Label
C) PictureBox
D) TextBox
D) TextBox
An example of a white space character is a ________ character.
A) Tab
B) Space
C) newline
D) All of the above
D) All of the above
Variables that store floating Point values should be declared as a(n) _____________.
A) Int
B) Integer
C) Long
D) Double
D) Double
The data type in a variable declaration is immediately preceded by keyword ___________.
A) IsA
B) Type
C) As
D) Dim
C) As
__________ is a programming language for sharing information via hyperlinked text documents on the World Wide Web.
A) HTTP
B) HTML
C) XML
D) Java
B) HTML
A _______________ is a group of one or more projects which form a program
1) a property
2) a solution
3) a visual basic file
4) a program
2) a solution
if x = 6 and y = 2 what is displayed by
txtOutput.Text = x / y + y \ x instruction in the txtOutput Text Box.
1) 3
2) 6
3) 6+2
4) 8
1) 3
Sequential execution refers to:
1) statements that execute an IF_ELSE
2) statements that execute one after another.
3) statements that execute when the program compiles
4) statements that execute outside a loop.
2) statements that execute one after another.
The += operator does what function?
1) increments the variable by the value evaluated on the right.
2) results in an error
3) adds the adjacent variable and then performs the evaluation to the right of the equals
sign.
4) decrements the variable by the value evaluated on the right.
1) increments the variable by the value evaluated on the right.
The first mathematical operator calculated in “4 - 6 mod (5 + 8 / 3 * 2)” is
1) -
2) mod
3) +
4) *
5) /
5) /
What step in the program development produces the executable code?
1) run
2) edit
3) build
4) clean
3) build
Which of the following is not an Input Device
1) Keyboard
2) Mouse
3) Printer
4) WebCam
3) Printer
1) ABSOLUTE_TEMP
2) sure&thing
3) interestRate
4) _total
2) sure&thing
which of these expressions evaluate to TRUE?
1) 5 = 18 mod 13
2) 20 <> 2.0
4) all of the above
4) all of the above
The purpose of the ALU is:
A) to store permanent data
B) to store temporary data
C) to cool the computer down and prevent overheating
D) to perform basic math logical comparisons for the computer
D) to perform basic math logical comparisons for the computer
Machine languages ______________.
A) are machine dependent.
B) are universal between all machines.
C) consist of numbers and letters
D) need to translated in order for the machine to understand commands.
A) are machine dependent.
The _________ is a collection of hardware and software associated with Internet that allows computer users to locate and view multi-media documents on almost any subject.
A) HyperText Markup Language (HTML)
B) HyperText Transfer Protocol (HTTP)
C) World Wide Web (www)
D) CERN
C) World Wide Web (www)