Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Object Oriented Programming Quiz 2

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

These two characters converts the rest of the line into a comment.

a)

//

b)

/*

c)

&

d)

*

2.

The using System line means that you are using the System library in your project.

a)

TRUE

b)

FALSE

3.

This feature of the IDE attempts to sense what you are going to type before you type it.

a)

Correction

b)

IntelliSense

4.

This escape sequence advances the next line; similar to pressing the Enter Key.

a)

\n

b)

\t

c)

\"

d)

\r

5.

This escape sequence advances to the next horizontal tab stop.

a)

\n

b)

\t

c)

\"

d)

\r

6.

This type of application that can be developed in C# normally sends request to the OS to display text on the command console or to retrieve data from the keyboard.

a)

Console-Based Application

b)

Windows Graphical User Interface (GUI)

c)

Web Applications

7.

This type of application that can be developed in C# are designed for desktop use and for a single platform. It runs on PC desktops IDE of Visual Studio.

a)

Console-Based Application

b)

Windows Graphical User Interface (GUI)

c)

Web Applications

8.

This application is used to quickly build applications that run on the Web for end users, to view through browser-neutral interface (UI's)

a)

Console-Based Application

b)

Windows Graphical User Interface (GUI)

c)

Web Applications

9.

This format is used to indicate the position of the variable in the string. This is also called format specifier.

a)

{0}

b)

[0]

c)

/0/

d)

\0\

10.

This command in CMD means "change directory or folder"

a)

cd

b)

cd\

c)

dir

d)

csc