wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Quiz 3 OOPL

Total questions: 19

Worksheet time: 10mins

Name
Class
Date
1.

Example of comments in C#

a)

//this is a comment in C#

b)

/*this is a comment in C#*/

c)

--this is a comment in C#

d)

#this is a comment in C#

2.

This is where you create objects and execute methods. It controls the start and end of the program

a)

Method

b)

Namespace

c)

Class

d)

Main Method

3.

Small block of code that performs an action.

a)

Method

b)

Namespace

c)

Class

d)

Main Method

4.

It prevents the console window from closing before you have a chance to read the output when you are in debug mode.

a)

ReadLine()

b)

Read()

c)

ReadKey()

d)

Write()

5.

This method allows multiple characters to be entered, it accepts characters until Enter key is pressed.

a)

ReadLine()

b)

Read()

c)

ReadKey()

d)

Write()

6.

It writes the string argument that appears inside the parenthesis to the standard output device.

a)

Read()

b)

ReadLine()

c)

Write()

d)

WriteLine()

7.

This method accepts any character from the input device and as soon as the key is pressed , control passes to the next line of the program.

a)

Read()

b)

ReadLine()

c)

Write()

d)

WriteLine()

8.

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

a)

Word Correct option

b)

System.Text

c)

System.Linq

d)

Class

9.

It is a type of application that can be developed in C# where the output of the program is displayed on the command console.

a)

Console Based Application

b)

Windows Graphical User Interface Application

c)

Web Applications

10.

It is a type of application that can be developed in C# and is intended for desktop use and for a single platform.

a)

Console Based Application

b)

Windows Graphical User Interface Application

c)

Web Applications

11.

It is a type of application that can be developed in C# and usually run on Web for end users to view on browsers..

a)

Console Based Application

b)

Windows Graphical User Interface Application

c)

Web Applications

12.

Indicates the position of the variable in the string.

a)

Word Correct Option

b)

Intellisense

c)

Format Specifier

13.

This escape sequence is used to print the backslash character.

a)

\n

b)

\\

c)

\t

d)

\"

14.

This escape sequence is used to print the double quote character.

a)

\n

b)

\\

c)

\t

d)

\"

15.

This escape sequence is used to print the single quote character.

a)

\n

b)

\\

c)

\t

d)

\'

16.

This escape sequence is used to advance to the next line of the program.

a)

\n

b)

\\

c)

\t

d)

\'

17.

This escape sequence is used to advance to the next horizontal tab stop.

a)

\n

b)

\\

c)

\t

d)

\'

18.

This escape sequence is used to advance to the beginning of the current line.

a)

\n

b)

\r

c)

\t

d)

\'

19.

It contains code that can be reused.

a)

Class

b)

Method

c)

Function

d)

Variable