You are on page 1of 4

TAGUIG CITY UNIVERSITY

Gen., Santos Ave., Central Bicutan Taguig City Philippines

COLLEGE OF INFORMATION AND COMMUNICATION TECHNOLOGY


PRE- TEST
SDF 104 Object Oriented
Programming (VB.NET)

Name: William Lloyd Maloloy-on Date: October 18, 2020

Course: BSCS Year/Section: 2nd Year/ Irregular

I. Multiple Choice

B 1. It is a VB.NET program that uses the command-prompt console for input and output.

a. Windows Form Application b. Console Application

c. WPF Application d. ASP.Net Web Application

D 2. How do we declare a variable in VB.NET?

a. public int employee_id b. var employee_id

c. public employee_id: Int d. Dim employee_id As Integer

D 3. It is one of the concepts of OOP that helps you to manage the complexity of a program.

a. Polymorphism b. Inheritance

c. Abstraction d. Encapsulation

A 4. Also known as “many forms”, ___________ is the ability of one program element to be
used in many different situations.

a. Polymorphism b. Inheritance

c. Abstraction d. Encapsulation

A 5. What is the correct initialization for “Dim age as Integer”?

a. Dim age as Integer = 16 b. Dim age as Integer = “16”

c. Dim age as Integer = ‘16’ d. Dim age as Integer = True


TAGUIG CITY UNIVERSITY

Gen., Santos Ave., Central Bicutan Taguig City Philippines

COLLEGE OF INFORMATION AND COMMUNICATION TECHNOLOGY


C 6. ___________ is a method that will print the given argument(s) with a
newline attached at the end.

a. Console.Write() b. Console.Writeline()

c. Console.WriteLine() d. Console.writeLine()

A 7. ___________ is a method that will read the console input from the user, up until the
next newline is detected.

a. Console.ReadLine() b. Console.readline()

c. Console.Readline() d. Console.Read()

A 8. What are the two string operators in VB.NET?

a. & and + b. && and +

c. ++ and & d. + and –

A 9. A Module is a group of functions.

a. true b. false

A 10. A class is a template from which variables are made.

a. true b. false

A 11. A class declared as Public can be accessed by any programs in the current assembly
as well as by any linked-in assembly.

a. true b. false

A 12. It is a Repetition Statement that loops through a set of statements “while” as tested
expression is True.

a. Do While Statement b. While Statement

c. Do Until Statement d. For Statement


TAGUIG CITY UNIVERSITY

Gen., Santos Ave., Central Bicutan Taguig City Philippines

COLLEGE OF INFORMATION AND COMMUNICATION TECHNOLOGY


A 13. _____________ usually initialize the data members of the new
object.

a. Class b. Destructor

c. Constructor d. Initializers

D 14. It is a variable whose value is assigned when it is declared and whose value cannot
be changed.

a. Initializers b. Constructor

c. Destructor d. Named Constants

A 15. What is the correct declaration of an array in VB.NET?

a. Dim grades As Integer b. Dim grades As Float

c. Dim grades(10) As Integer d. Dim grades{10} As Integer

B 16. You can use modules to write common functions.

a. true b. false

B 17. ____________ are In the .Net Framework, the garbage collector automatically
manages the allocation and release of memory for the managed objects in your application.

a. Class b. Destructor

c. Constructor d. Initializers

B 18. ____________ enables you to create a new class that reuses, extends, and modifies
the behavior that is defined in another class.

a. Polymorphism b. Inheritance

c. Abstraction d. Encapsulation
TAGUIG CITY UNIVERSITY

Gen., Santos Ave., Central Bicutan Taguig City Philippines

COLLEGE OF INFORMATION AND COMMUNICATION TECHNOLOGY


C 19. What is IDE stands for?

a. Integrated Download Environment b. Integrated Development Equipment

c. Integrated Development Environment d. Internet Development Environment

A 20. What is SDK stands for?

a. Software Development Kit b. System Development Kit

c. Software Developer’s Kit d. System Developer’s Kit

II. Identification

For loop 21. A repetition statement that is used when you want to express the idea that the loop
should run “until” the test expression becomes true.

Function 22. Is a subprogram that returns a value to the calling program.

Procedures 23. Are used most often to perform frequent tasks that take several lines of

code to write.

Recursive Procedures 24. Is one that calls itself as part of its definition.

Class 25. Is a mechanism for maintaining a strict separation between code and data.

Classes and Objects 26. Is the primary means of implementing OOP in VB.NET.

Imports System 27. This keyword is used to import a namespace to your project.

Modules 28. Is a group of function.

Overrides 29. This keyword is used to mark that a function is overriding some base class
function.

Overridable 30. This keyword is used to mark a function as overridable.

You might also like