Question: visual basic question 1-10 QUESTION 1 What is the data type of 6D/3D? Integer Decimal Double none of the above QUESTION 2 Keywords in Visual





QUESTION 1 What is the data type of 6D/3D? Integer Decimal Double none of the above QUESTION 2 Keywords in Visual Basic are words that should be used when naming variables. are used to name controls, such as TextBox1, Command, etc. have special meaning and should not be used as variable names. are used as prefixes for control names (such as txt, btn. Ibl, and ist). QUESTION 3 What is the value of x after the following two lines are executed - x = 12 X+ ANN QUESTION 4 Which of the following is a valid name for a variable? Two_One 20ne Two.One Two One QUESTION 5 The type of error that is normally spotted by the Code Editor is runtime logic syntax o user QUESTION 6 What will be displayed when the following lines are executed? Dim x As Double = 3. y As Double = 1 Dim z As Double z = x + y + x) x=y Z=X+Z IstBox.Items.Add(x + y + z). 04 9 10 None of the above QUESTION 7 What is the correct statement when declaring and assigning the value of 100 to an Integer variable called numPeople? Set numPeople - 100 Dim numPeople = Math.int(100) numPeople = 100 Dim numPeople As Integer - 100 QUESTION 8 Suppose the Double variable num has the value 123.4567. What value will the following statement assign to num? num - Math.round(num, 2) 123.4567 123.457 123.45 123.46 QUESTION 9 Which of the following statements declare the variables a and b as type Integer? a = 0; b=0 Dim a, b Dim a & b As Integer Dim a, b As Integer QUESTION 10 What is the value of int(8.9)? 8
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
