CNIT 155 FINAL PURDUE UNIVERSITY
EXAM STUDY GUIDE 2026 COMPLETE
QUESTIONS AND ANSWERS
⫸ Connecting two string to form a longer string is called _______
Answer: Concatenation
⫸ Programming languages use ____ to store and remember data values
in a program Answer: Variables
⫸ Assume that variable Price has been declared with data type Decimal.
What statement would assign the value '3.99' to variable 'Price'?
[x] = [y] Answer: [x] = Price
[y] = 3.99
⫸ A control mainly used to get the user's input during program
execution Answer: Text Box
⫸ A control typically used to display a program's output Answer: Label
⫸ A control typically placed next to another GUI object to describe its
purpose Answer: Label
⫸ A control used to initiate an action Answer: Button
,⫸ The form and the objects placed on the forma are the VB program's
Answer: GUI (Graphical User Interface)
⫸ Assume a variable 'PetName' of type String has already been
declared. What statement would assign the value Luna to the variable
'PetName'?
[x] = [y] Answer: [x] = PetName
[y] = Luna
⫸ A _______ literal is a group of characters, enclosed between double
quotes, that is treated as on piece of data Answer: String
⫸ What data type should be used when dealing with money/currency?
Answer: Decimal
⫸ GUI stands for what? Answer: Graphical User Interface
⫸ The _______ operator is used to find the remainder of a division
Answer: MOD
⫸ What is the arithmetic operator in the following problem:
6\8 Answer: Integer Division
, ⫸ Evaluate the arithmetic expression shown below:
2 + 3 *4 = ? Answer: 14
⫸ The _____ method takes a numeric String as input and changes it into
the number of the specified data type. Answer: Parse()
⫸ The _____________ method converts a numeric data to its String
equivalent. Answer: ToString()
⫸ What is the result of 10 \ 3 ? Answer: 3
⫸ To change the value stored in a variable, it should appear on the
___________ side of the assignment operator. Answer: Left hand
⫸ The scope of a module scope variable is the entire _____, and its
lifetime the duration of the _____. Answer: Code window, program
⫸ The keyword for declaring a local variable is ----------- Answer: Dim
⫸ When the Else part of an If statement is another If statement, we can
use the [x] keyword. This simplifies the indentation of the code and
requires fewer End If. Answer: Esleif
EXAM STUDY GUIDE 2026 COMPLETE
QUESTIONS AND ANSWERS
⫸ Connecting two string to form a longer string is called _______
Answer: Concatenation
⫸ Programming languages use ____ to store and remember data values
in a program Answer: Variables
⫸ Assume that variable Price has been declared with data type Decimal.
What statement would assign the value '3.99' to variable 'Price'?
[x] = [y] Answer: [x] = Price
[y] = 3.99
⫸ A control mainly used to get the user's input during program
execution Answer: Text Box
⫸ A control typically used to display a program's output Answer: Label
⫸ A control typically placed next to another GUI object to describe its
purpose Answer: Label
⫸ A control used to initiate an action Answer: Button
,⫸ The form and the objects placed on the forma are the VB program's
Answer: GUI (Graphical User Interface)
⫸ Assume a variable 'PetName' of type String has already been
declared. What statement would assign the value Luna to the variable
'PetName'?
[x] = [y] Answer: [x] = PetName
[y] = Luna
⫸ A _______ literal is a group of characters, enclosed between double
quotes, that is treated as on piece of data Answer: String
⫸ What data type should be used when dealing with money/currency?
Answer: Decimal
⫸ GUI stands for what? Answer: Graphical User Interface
⫸ The _______ operator is used to find the remainder of a division
Answer: MOD
⫸ What is the arithmetic operator in the following problem:
6\8 Answer: Integer Division
, ⫸ Evaluate the arithmetic expression shown below:
2 + 3 *4 = ? Answer: 14
⫸ The _____ method takes a numeric String as input and changes it into
the number of the specified data type. Answer: Parse()
⫸ The _____________ method converts a numeric data to its String
equivalent. Answer: ToString()
⫸ What is the result of 10 \ 3 ? Answer: 3
⫸ To change the value stored in a variable, it should appear on the
___________ side of the assignment operator. Answer: Left hand
⫸ The scope of a module scope variable is the entire _____, and its
lifetime the duration of the _____. Answer: Code window, program
⫸ The keyword for declaring a local variable is ----------- Answer: Dim
⫸ When the Else part of an If statement is another If statement, we can
use the [x] keyword. This simplifies the indentation of the code and
requires fewer End If. Answer: Esleif