wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

CC102 - Quiz 2 - Midterm

Total questions: 60

Worksheet time: 38mins

Name
Class
Date
1.

The container for all the controls that make up the user interface.

a)

Toolbox

b)

Menu Bar Toolbar

c)

Properties Windows

 

d)

Visual Basic Window Form Application

2.

A Label control allows users to input text.

a)

True

b)

False

3.

Consist of inbuilt compiler, debugger, editors, automation tools for easy developement of code.Visual Basic.net 2008

a)

ToolBox

b)

ToolBox

c)

Integrated Developement Environment (IDE)

d)

Solution Explorer

4.

Used to move and resize controls and forms.

a)

Cursor

b)

Drag

c)

Pointer

d)

Lens

5.

This controls trigger an action when accessed.

a)

Radio Button

b)

Button

c)

Checkbox

d)

Mouse cursor

6.

Controls that has values either true or false.

a)

Button

b)

Radio button

c)

Checkbox

d)

Combo box

7.

List checkbox next to each item.

a)

List box

b)

Check box

c)

Checked listbox

d)

Combo box

8.

A combination of list and text box controls that enables to select as well as edit text.

a)

Combo box

b)

List box

c)

Checked listbox

d)

Drop box

9.

Displays a label text.

a)

Label

b)

Link label

c)

Tooltip

d)

Notify icon

10.

Control used to input or display text.

a)

Label

b)

Picture box

c)

Text box

d)

Combo box

11.

What is MDI stand for?

a)

Multitasking Document Interface

b)

Multiple Drive Interface

c)

Multiple Document Interconnect

d)

Multiple Document Interface

12.

The following our examples of VB IDE, except one:

a)

Start page

b)

Solution Explorer

c)

ToolBox

d)

Properties Window

13.

Allows to choose a choice from a group of choices.

a)

Combo box

b)

Radio button

c)

Check box

d)

DateTime picker

14.

Allows to input a integer of specific decimal places within a specific range.

a)

Rich textbox

b)

Label

c)

Textbox

d)

NumericUp down

15.

Display the hierarchy of nodes.

a)

Picture box

b)

Progressbar

c)

Treeview

d)

List view

16.

Extension of listbox control with option to add icons and headings.

a)

Rich textbox

b)

Tree view

c)

List view

d)

List box

17.

Every object in VB .NET has it own toolbox that can be used to change the look and even the functionality of the object.

a)

TRUE

b)

FALSE

18.

You can change or view the value of the property of an object by selecting the object and go to property window section.

a)

TRUE

b)

FALSE

19.

While working with window form application you will see the following parts or sections. except one:

a)

Menu Bar Toolbar

b)

Form Designer

c)

Toolbox

d)

Label

20.

What screen elements displays the attributes for a form or control that is inserted and selected?

a)

Form layout window

b)

Properties window

c)

Project Exploer

d)

Toolbox

21.

It shows the position of the form on the screen at runtime.

a)

Toolbox

b)

Properties window

c)

Project Exploer

d)

Form layout window

22.

It contains controls that can be placed on the form.

a)

ToolBox

b)

Form1

c)

Project Explorer

d)

Properties Window

23.

Visual Basic is an object-oriented program produced by Adobe Corporaton.

a)

True

b)

False

24.

Serves as a visual and functional container for controls

a)

PictureBox

b)

ComboBox

c)

DriveListBox

d)

Frame

25.

IDE acronym stands for Integrated Developers Environment.

a)

True

b)

False

26.

Displays icons/bitmaps and metafiles. It displays text or acts as a visual container for other controls.

a)

PictureBox

b)

ComboBox

c)

DriveListBox

d)

Frame

27.

MDI stands for

a)

Manipulated Document Interface

b)

Menu Design Interface

c)

Multiple Design Interface

d)

Multiple Document Interface

28.

The Function and procedure in Visual Basic are by default

a)

Private

b)

Public

c)

Protected

d)

None of the above

29.

Rules for variable name

a)

Must begin with letter

b)

Contain spaces,period(:),hyphen(-)

c)

Maximum size 255 characters

d)

Must be unique within the same scope

30.

Which symbol creates an access(hot) key in the text of a menu item?

a)

&

b)

@

c)

$

d)

#

31.

Variables are named storage locations in memory, the value of which does not change during program

a)

execution

b)

design

c)

debug

d)

none of the above

32.

Which type of control is used to design a form like above

a)

Check Box

b)

Option Button

c)

Combo Box

d)

List Box

33.

Which property determines whether a control is displayed to the user?

a)

Show

b)

Visible

c)

Enabled

d)

Hide

34.

Which of these names would be most appropriate for a button that allows the user to submit the answer?

a)

Answer

b)

Button1

c)

SubmitBttn

d)

Button1.text

35.
What would be the best name for this control? 
a)
Textbox1.text
b)
Textbox
c)
Name
d)
NameTxtbox
36.

Which symbol creates an access(hot) key in the text of a menu item?

a)

&

b)

@

c)

$

d)

#

37.
To start run the application press F5 on the key board
a)
True
b)
False
38.
The first line of the code declares a class with the name of the form window
a)
True
b)
False
39.

Classify the data type that must be held in each variable.

INT - for integer

DOUBLE - for double

STRING - for string


Q: LOCKER NUMBER

a)

DOUBLE

b)

STRING

c)

INT

40.
In the statement  int x; What is x ?
a)
a variable
b)
a data type
c)
a class
d)
an object
41.
In the statement  int x; What is int ?
a)
a variable
b)
a data type
c)
a class
d)
an object
42.
What happens if a variable or method is made private?
a)
It can be accessed by any class inherited from the current class
b)
It can be accessed from another object unrelated to the current one.
c)
It cannot be accessed by an unrelated object from the outside.
d)
It cannot be accessed by anything
43.

Below are the list of three characteristics of an Object EXCEPT ONE. What is it?

a)

Behavior

b)

Attribute

c)

State

d)

Identity

44.

What is the code to clear the screen in a VB program?

a)

Text1.text = "

b)

Text1.text = ""

c)

Text1.Text = Clear

d)

Text1.Text = "Clear"

45.

Which one is the correct formula to calculate the square of a number?

a)

a = Val(Text1.Text)

Square = a ^ 2

b)

a = Val "Text1.Text"

Square = a ^ 2

c)

a = Val(Text1.Text)

Square = a ^ 1/2

46.

What is used to execute the program?

a)
b)
c)
47.

Which of the following commands are used for selecting more than one option?

a)

if a= 1 then

print "licence given" else print"license denied"

end if

b)

if a > 1 then

print "license given"

else

"license denied"

end if

48.

In Visual Basic how can you make the password appear in characters (*)

a)

type * in the command code

b)

type * in caption property

c)

select * from the project window

d)

type * in passwordchar.

49.

___________________ is used to define a value in text 1.

a)

val1.text

b)

val(text.text1)

c)

val(text1.text)

d)

val"text1.text"

50.
……………… window we can write code
a)
A.  Immediate window 
b)
B.     Locals window
c)
C.  Code editor window 
d)
D.     None of these 
51.
……….. is a meaningful name that takes the place of a number or string.  
a)
A. Variable
b)
B. Event
c)
C. Constant 
d)
D. Datatype
52.

The Toolbox in Visual Studio contains tools used to design the user interface

a)

True

b)

False

53.

Visual Basic 2022 is part of the Microsoft Visual Studio IDE.

a)

True

b)

False

54.

The Properties Window is used to change the behavior and appearance of controls.

a)

True

b)

False

55.

The Solution Explorer is used to view and organize all the files in a project.

a)

True

b)

False

56.

The Text property of a Button sets the text that appears on it.

a)

True

b)

False

57.

The Click event of a Button occurs when the mouse pointer passes over it.

a)

True

b)

False

58.

The MsgBox() function displays a message to the user.

a)

True

b)

False

59.

What event procedure is used when the user clicks a button named btnSubmit?

(a)  

60.

Write a VB code line that displays the text “Welcome to APCAS Tech!” in a message box.


(a)