(please write your answer for each question. Total 30 (please wstion) Section A.
ID: 3877791 • Letter: #
Question
(please write your answer for each question. Total 30 (please wstion) Section A. Single choice y points for 15 questions, 2 points per quest 1 There are three steps in creating a ncluded A Create the interface o Write the code that executes when events 2 Which of the following functions comverts a strng B Cint D None of above selected at a time? C. Two make the btnButton disappear A CStr C cobl 3 How many Check Boxes in a group can be D. More than 0 A Zero Which of the following statement is true to B One 4 A btnButton. Visible True B btnButton Visible-False C btnButton Texta True D btnButton Text-False Assuming sum= 100.vvhat is the rotuit of FormatCurrency(sum, 2)? A 5200 5 C $100.00 D. $100.0 B. 10000 6 What is the result of 2 542-l A. 101 C. 1000 D. 250 7 The output of 55" & A. 5Sday B 55 day C 55-dday o ssädy e which of the following descriptions is not A Variables support the computation of values thr assignment statements B Variable values are stored to memory locations tation of values through their use in formulas and C Variable values cannot have its value changed duri D Variables are assigned a unique name for reference when writing computer code 9 What is the result of "mon day' length? A 6 B.7 C.5 10 Which scope a variable is when it s declared inside of a Do loop? D.3Explanation / Answer
1.
The correct option is B. Create the Document window
Explanation :
There are three steps in creating the vb applicaiton
Step1 : Create the user interface
Step2: Set the properties of the controls
Step3:Write the code when user click the control buttons
2.
The correct option is B.CInt
Explanation :
The method CInt that converts the string to integer
value.
3.
The correct option is B. One
Explanation :
Only one check box can be selected from the check boxe
group.
4.
The correct option is B. btnButton.Visible=False
Explanation :
The property to set Visible to disappear is
btnVisible.Visible=False
5.
The correc option is C. $100.00
Explanation :
The method FormatCurrency(sum,2) that displays
the value of sum =100 in $100.00 upto two decimal places
6.
The correct option A. 101
Explanation :
The expression 2*5^2+1
The multiplication has higher precedence over ^(power) and +
so 2*5=10
Now,10^2=100
Now,100+1=101
7.
The correct option is A. 55day
Explanation :
The & symbol concatenate two strings into one sting
"55"&"day"=55day
8.
The correct option is C. Variables values cannot have its value
changed during program execution.
Explanation :
The variables declared inside the program can be changed to
different values during the program execution.
9.
The correct option is B.7
Explanation :
The length of the string "mon day" is 7
10.
The correct option is A. block - level
Explanation :
The variable declared inside the while cannot be accessed
out of the block. So, it is block level scope
11.
The correct option is A. (a+b) < 2*a
Explanation :
The values for a=4
b=3
4+3=7<2*4=8
12.
The correct option is C. textbox1.Backcolor=Color.Red
13.
The correct option is C. listbox1.items.add("good morning")
14.
The correct option is D. ( )
Explanation :
The paranthesis ( and ) got higher precedence over *,/ and mod
15.
The correct option is A. "car"<"cat"
Explanation :
The alphabets are compared
c=c
a=a
r<t since r comes before t as per ascii code
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.