sample midterm Flashcards

1
Q

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

A

C) control how text is formatted

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

The three types of control structures are sequence, selection, and __________.
Question 2 options:

A) redo

B) repeat

C) repetition

D) looping

A

C) repetition

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

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

A

B) Error List

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

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

A

C) replaces

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

A(n) ________ help the user understand a control’s purpose.

A) Button

B) descriptive Label

C) TextBox

D) title bar

A

B) descriptive Label

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

A __________ is a control in which the user can enter data from a keyboard.

A) Button

B) Label

C) PictureBox

D) TextBox

A

D) TextBox

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

An example of a white space character is a ________ character.

A) Tab

B) Space

C) newline

D) All of the above

A

D) All of the above

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Variables that store floating Point values should be declared as a(n) _____________.

A) Int

B) Integer

C) Long

D) Double

A

D) Double

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

The data type in a variable declaration is immediately preceded by keyword ___________.

A) IsA

B) Type

C) As

D) Dim

A

C) As

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

__________ is a programming language for sharing information via hyperlinked text documents on the World Wide Web.

A) HTTP

B) HTML

C) XML

D) Java

A

B) HTML

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

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

A

2) a solution

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

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

A

1) 3

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

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.

A

2) statements that execute one after another.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

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.

A

1) increments the variable by the value evaluated on the right.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

The first mathematical operator calculated in “4 - 6 mod (5 + 8 / 3 * 2)” is

1) -
2) mod
3) +
4) *
5) /

A

5) /

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What step in the program development produces the executable code?

1) run
2) edit
3) build
4) clean

A

3) build

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Which of the following is not an Input Device

1) Keyboard
2) Mouse
3) Printer
4) WebCam

A

3) Printer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

1) ABSOLUTE_TEMP
2) sure&thing
3) interestRate
4) _total

A

2) sure&thing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

which of these expressions evaluate to TRUE?

1) 5 = 18 mod 13
2) 20 <> 2.0
4) all of the above

A

4) all of the above

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

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

A

D) to perform basic math logical comparisons for the computer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

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

A) are machine dependent.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

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

A

C) World Wide Web (www)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Which of the following is/are true about Visual Basic.

A) It’s object oriented.

B) It makes windows programming easier.

C) It’s event driven.

D) All of the above.

A

D) All of the above.

24
Q

Part of the .NET Initiative is Microsoft’s _______ technology, which enables you to create web applications:

A) class library

B) Vitual Machine

C) XML

D) ASP.NET

A

D) ASP.NET

25
Q

___________ are software systems that make using computers more convenient for users, application developers, and system administrators.

A) Operating Systems

B) Application programs

C) Graphical User Interface

D) Internet

A

A) Operating Systems

26
Q

Visual Basic programs are created using Microsoft’s Visual Studio- a collection of sofware tools called a(n) __________.

A) Operating System

B) Integrated Programming Environment

C) Integrated Development Environment

D) Microsoft Foundation Class

A

C) Integrated Development Environment

27
Q

A Textbox’s ________ property can be used to change the text that’s displayed in a Textbox.

A) Content

B) Data

C) Name

D) Text

A

D) Text

28
Q

Data types already defined in Visual Basic, such as String and Integer, are known as ________.

A) Constant data types

B) Standard Data types

C) User defined data types

D) Primitive data types

A

D) Primitive data types

29
Q

A binary operator has _______ operands(s).

A) One

B) two

C) zero

D) two or more

A

B) two

30
Q

Set a Label’s ___________ property to Fixed3D to give the Label a three-dimensional appearance.

A) BorderStyle

B) BorderDepth

C) BorderShading

D) Borderperspective

A

A) BorderStyle

31
Q

A transfer of control occurs when:

A) a program changes from input to output, or vice versa

B) a logic error occurs in a program.

C) a statement other than the next sequential one in the program executes.

D) none of the above

A

C) a statement other than the next sequential one in the program executes.

32
Q

What does the expression x = 10 do?

A) Multiply 10 by the value of x, and stores the result in x.

B) Divide x by 10 and stores the remainder in x.

C) Divide x by 10 and stores the integer result in x.

D) Divide x by 10 and store the floating point result in x.

A

C) Divide x by 10 and stores the integer result in x.

33
Q

The expression value *= 4 is an abbreviation for:

A) value = 4value

B) value * 4 = value

C) value * value * 4

D) value = value * 4

A

D) value = value * 4

34
Q

Which of the following is not a debugger feature?
Incorrect Response
A) examining and setting variable values

B) locating syntax error

C) watching the values of variables and expressions

D) viewing the values of variables and expressions

A

B) locating syntax error

35
Q

To execute a program one statement at a time without entering the code of a called method, use the debugger’s_________ command.

A) Step Over

B) Step Under

C) Step Into

D) Step Out

A

A) Step Over

36
Q

The expression following the keywords Select Case is called the:

A) selection expression

B) variable expression

C) controlling expression

D) Case expression

A

C) controlling expression

37
Q

Which of the following operators is typically used to ensure at least one out of multiple conditions is true?

A) Or

B) And

C) XOr

D) Not

A

A) Or

38
Q

Identify the incorrect logical operator:

A) AndAlso

B) ElseOr

C) Xor

D) Not

A

B) ElseOr

39
Q

Considering integer division what would be displayed by the following expression?
txtOutput.Text = (12.1 \ 3) Mod 2

1) 4.033
2) 0
3) 2
4) 3

A

2) 0

40
Q

If x = 12, evaluate the expression (x + 5) mod 3

1) 2
2) 0
3) 3
4) 4

A

1) 2

41
Q

The expression “if choice 2” is

1) checking if the value of choice is 2
2) checking if the value of choice is not equal to 2
3) assigning the value of 2 to choice
4) none of the above

A

2) checking if the value of choice is not equal to 2

42
Q

Three TYPES of languages discussed were

1) Fortran, machine, high-level
2) C++, assembly, Java
3) Pascal, assembly, Ada
4) High-level, machine, assembly

A

4) High-level, machine, assembly

43
Q

What will the following expression display on the screen.
Dim a as String = “”

a = “Hello”
a &= “ World”
txtOutput.Text = a

1) Hello
2) World
3) Hello World
4) Hello World

A

4) Hello World

44
Q

Which conversion specifier handles the display of floating point numbers

1) {0:F}
2) {0:X}
3) {0:E}
4) {0:G}

A

1) {0:F}

45
Q

Which of the following is not a reserved word

1) Dim
2) Integer
3) Double
4) Celsius

A

4) Celsius

46
Q

Which of the following statments is true

1) the keywords module and end module end the body of the module
2) the keywords sub main() and end sub end the body of the module
3) the keywords function() and end function end the body of the module
4) the keywords if and end if end the body of the module

A

1) the keywords module and end module end the body of the module

47
Q

Objects normally are not allowed to know how other objects are implemented. This is called __________.

A) inheritance

B) encapsulation

C) blindfolding

D) polymorphsim

A

B) encapsulation

48
Q

Which of the following is not supported image format:
Incorrect Response
A) GIF

B) TIF

C) PNG

D) JPEG

A

B) TIF

49
Q

A comment in Visual Basic begins with:

A) /*

B) //

C) ‘

D) */

A

C) ‘

50
Q

A Form’s ___________ event occurs just before the Form is displayed on the screen, typically as a result of executing the program.

A) Load

B) Display

C) Execute

D) Click

A

A) Load

51
Q

Which operator performs String concatenation?

A) @

B) &

C) %

D) #

A

B) &

52
Q

Which of the following represents the “is equal” to “ equality operator:

A) ==

B) =

C) !=

D) <>

A

B) =

53
Q

The ___________ event is a TextBox’s default event.

A) TextEntered

B) Click

C) Load

D) TextChanged

A

D) TextChanged

54
Q

Which of the following is true?

A) Pseudocode is used to specify the variables needed by the program.

B) Pseudocode is used to describe executable statements that will eventually be translated by the programmer into a program.

C) Psedocode translate high level language to an assembly language.

D) Pseudocode compiles into machine code.

A

B) Pseudocode is used to describe executable statements that will eventually be translated by the programmer into a program.

55
Q

Keyword _____________ is used to specify a range in Case statement.

A) Also

B) Between

C) To

D) From

A

C) To