Font size
WorksheetsQuiz 3 OOPL
Total questions: 19
Worksheet time: 10mins
Example of comments in C#
//this is a comment in C#
/*this is a comment in C#*/
--this is a comment in C#
#this is a comment in C#
This is where you create objects and execute methods. It controls the start and end of the program
Method
Namespace
Class
Main Method
Small block of code that performs an action.
Method
Namespace
Class
Main Method
It prevents the console window from closing before you have a chance to read the output when you are in debug mode.
ReadLine()
Read()
ReadKey()
Write()
This method allows multiple characters to be entered, it accepts characters until Enter key is pressed.
ReadLine()
Read()
ReadKey()
Write()
It writes the string argument that appears inside the parenthesis to the standard output device.
Read()
ReadLine()
Write()
WriteLine()
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.
Read()
ReadLine()
Write()
WriteLine()
This feature of an IDE attempts to sense what you are going to type before you type it.
Word Correct option
System.Text
System.Linq
Class
It is a type of application that can be developed in C# where the output of the program is displayed on the command console.
Console Based Application
Windows Graphical User Interface Application
Web Applications
It is a type of application that can be developed in C# and is intended for desktop use and for a single platform.
Console Based Application
Windows Graphical User Interface Application
Web Applications
It is a type of application that can be developed in C# and usually run on Web for end users to view on browsers..
Console Based Application
Windows Graphical User Interface Application
Web Applications
Indicates the position of the variable in the string.
Word Correct Option
Intellisense
Format Specifier
This escape sequence is used to print the backslash character.
\n
\\
\t
\"
This escape sequence is used to print the double quote character.
\n
\\
\t
\"
This escape sequence is used to print the single quote character.
\n
\\
\t
\'
This escape sequence is used to advance to the next line of the program.
\n
\\
\t
\'
This escape sequence is used to advance to the next horizontal tab stop.
\n
\\
\t
\'
This escape sequence is used to advance to the beginning of the current line.
\n
\r
\t
\'
It contains code that can be reused.
Class
Method
Function
Variable
