NEW
Font size
WorksheetsBenchmarkI RetestPractice - CMPI
Total questions: 10
Worksheet time: 5mins
The use of a hexadecimal numbering system in computers allows the computer to:
convert small numbers quickly
represent small amounts of information in a large database
store data with little room for error
use less disk space in storing data
The best way to compare a binary number to a hexadecimal number is to convert:
the binary number to a decimal number and then compare that to the hexadecimal number
the binary number to a hexadecimal number and compare that to the hexadecimal number
the hexadecimal number to a binary number and then to a decimal value to compare
the hexadecimal number to a decimal number and compare that to the binary number
What is a set of steps that create an ordered approach to a problem solution called?
Pseudocode
Flowcharting
Algorithm
Modularization
Which of the choices below is not a Basic Control Structure?
Simple sequence control structure
Conditional control structure
Iteration control structure
Pseudocode control structure
Which method formats output as currency?
dblMoney.ToString("$##.00")
dblMoney.ToString($##.00)
dblMoney.ToString= $##.00
dblMoney.ToString= "$##.00
Josie is writing a program and needs a variable that can be accessed from multiple event procedures. What scope of variable should she use?
Procedural
Global
Local
Non-Local
Kirk wants to declare a variable that holds its value beyond the normal lifetime. How should he declare it?
Static intGrade As Integer
Dim Static intGrade As Integer
Static Dim intGrade As Integer
Dim intGrade As Integer
What is the correct code to create a message box from the following code?
lblcost.Text= "The cost of the product is: " & (deccost + dectax)
MessageBox.Show "The cost of the product is: " & (deccost + dectax)
MessageBox.Show ("The cost of the product is: "& (deccost + dectax))
Textbox.Show ("The cost of the product is: " & (deccost + dectax))
Textbox.show =("The cost of the product is: " & (deccost + dectax))
If a student needed to declare a variable to hold values representing a grade point average (GPA), which would be the best declaration given programming naming conventions?
Dim dblGPA As Double
Dim intGPA As Double
Dim intGPA As Integer
Dim strGPA As String
If 5 and 2 are entered in txtNumber1 and txtNumber2, respectively, what will the following code display?
Dim intNumber1 As Integer= Convert.ToInt32(txtNumber1.Text)
Dim intNumber2 As Integer= Convert.ToInt32(txtNumber2.Text)
Dim intResult As Integer
intResult= intNumber1 Mod intNumber2
lblAnswer.Text= intResult.ToString()
1
2
3
5
