Contents

Which of the following is called the line continuation character?
a) *                        
b) ^                        
c) –                        
d) _

d

Explanation: When a code line exceeds the view, one can use the _ to extend it code into the next line. The line continuation character must be immediately preceded by a space and appear at the end of a physical line.


ControlChars.NewLine constant is a……… constant.
a) Pure                                  
b) Invariable
c) Character                         
d) Intrinsic

d

Explanation: Intrinsic constant is one which is built into Visual Basic. ControlChars.NewLine is inbuilt in Visual basic, that is the code for this function, that is its control is already predefined. Thus it is an intrinsic constant.


What is the specialty of the Default button?
a) Always focused by default
b) Always clears the form it is in
c) Can be selected by the Enter key even when not focused
d) Can be selected by the Shift key even when not focused

d

Explanation: The Default button is the one that is most commonly used and is assigned the Enter key as shortcut. Thus the Default button can be used that is it can be selected by Shift key even when not focused.


The Cancel Button’s procedure is accessed by……… key.
a) Esc    
b) Alt     
c) Ctrl    
d) Shif

a

Explanation: The cancel button is assigned as the Esc key which is used to exit the current form. Thus to exit from the current form we press the Esc key since the Cancel’s button procedure is accessed by Esc key.



How many default buttons can a form have?
a) 1                        
b) 2                        
c) 3                        
d) 4

a

Explanation: The default button is used to send the information of the current file. In such a case only one button is required per form. Thus a form can have only one default button, to send its own information.


How is a default button designated?
a) Default keyword in the definition of the button
b) Setting the setfocus property to on
c) Keeping the button at the bottom of the form
d) By connecting the AcceptButton property to it

d

Explanation: The AcceptButton property is used to send over the form information hence the button which calls it is set as the default button. Thus the Default Button is designated by connecting the Accept button property to it.