wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

AOOP quiz

Total questions: 66

Worksheet time: 33mins

Name
Class
Date
1.

Who developed C#?

(a)  

2.

When was C# developed?

(a)  

3.

C# is part of the (a)   framework

4.

What is known for its OOP features and simplicity?

(a)  

5.

(a)   used to import namespaces, containing classes and other types used in the program.

6.

(a)   are to organize code into logical groups and prevent naming conflicts.

7.

(a)   are blueprints for creating objects encapsulating data and behavior.

8.

The (a)   contains the program's main logic.

9.

Can a class contain can contain additional methods and class members defining the behavior of the program? (True/False)

(a)  

10.

(a)   is used to output text, variables, and other data without a newline character to the console in C#.

11.

(a)   appends a new line character at the end of the output, moving the cursor to the next line.

12.

(a)   are used within the string to indicate how variables should be formatted.

13.

(a)   are special character combinations that represent characters that cannot be printed using the normal way of printing.

14.

Moves the cursor to the beginning of the next line.

(a)  

15.

Inserts a horizontal tab.

(a)  

16.

Inserts a double quote character.

(a)  

17.

Inserts a single quote character.

(a)  

18.

Inserts a backslash character.

(a)  

19.

Moves the cursor back one position.

(a)  

20.

Moves the cursor to the beginning of the next line.

(a)  

21.

(a)   are used within output statements to specify the position and format of variable values. They are represented by format specifiers, enclosed in { and }.

22.

Placeholders are identified by their (a)   within the curly braces.

23.

Format specifiers are used to (a)   of the displayed values.

24.

(a)   is used to accept a string input from the user.

25.

(a)   used to convert the input string into an integer.

26.

(a)   is used to convert the input string into a float.

27.

(a)   repeats a code block as long as specified condition is true; condition is evaluated before each iteration of the loop

28.

while loop syntax

(a)  

29.

(a)   allows you to repeat a code block at least once, and then continue repeating it as long as a specified condition is true; the condition is checked after each iteration

30.

do-while loop syntax

(a)  

31.

(a)   allows you to repeat a code block a specific number of times; provides a concise and structured way to control loop iterations using three essential components.

32.

for loop syntax

(a)  

33.

(a)   is a powerful way to perform repetitive tasks that require multiple iterations. It executes a loop inside another loop, with two or more variables simultaneously.

34.

The (a)   is for control and execution of inner loop.

35.

The (a)   is for the iterations of the outer loop.

36.

(a)   prematurely terminates the execution of the loop. It controls the flow of the program and stop the execution based on certain conditions.

37.

(a)   is used to skip the current iteration of a loop and move to the next iteration. It can bypass certain parts of a loop's code block and proceed with the next iteration.

38.

An (a)   allows you to store a collection of elements of the same type. It provides a convenient way to organize and manipulate data as a contiguous block of memory.

39.

(a)   is the process of accessing array elements one-by-one, allowing you to perform operation on individual elements or analyze the entire array.

40.

(a)   is the simplest form of arrays and provides a convenient way to store and manipulate collections of data.

41.

one-dimensional array syntax

(a)  

42.

To access array elements, we use its (a)   .

43.

(a)   returns the value of the array’s length/size for rows

44.

returns the value of the array’s length/size for columns

(a)  

45.

(a)   encapsulates reusable blocks. It is crucial for breaking down complex problems and promotes the Don’t Repeat Yourself (DRY) principle. It simplifies debugging and updating code.

46.

A function is defined with a ___, ___, and a ___ enclosed in parentheses.

(a)  

47.

A function is called by (a)  

48.

function syntax

(a)  

49.

(a)   is the data type of the value the function returns. Use void if the function doesn't return any value.

50.

(a)   is a unique name for the function, following the C# naming conventions.

51.

(a)   is a list of input parameters (if any) that the function

52.

(a)   is the block of code inside the function where the task is performed.

53.

If the function has a non-void return type, it must return a value of that type using the return statement.

(a)  

54.

(a)   are values passed on to the function when it is called.

55.

(a)   are placeholders defined in the method declaration or definition.

56.

In (a)   , a copy of the value is made and passed to the method. Any changes made to the formal parameters within the method do not affect the original values of the actual parameters.

57.

(a)   allows methods to modify the original values of the actual parameters directly.

58.

The (a)   keyword is used to by reference in C#

59.

(a)   is used to exit a method and provide a value to the caller

60.

(a)   is used if methods do not need to return any value.

61.

(a)   is a function that calls itself to solve a smaller instance of the same problem.

62.

The (a)   is the simplest form of the problem that can be directly solved.

63.

A (a)   is where the function calls itself with a reduced version of the original problem until it reaches the base case.

64.

(a)   is a fundamental concept in the C# programming language that allow you to define and manipulate composite data types. They are used to group related data items of different types into a single unit

65.

(a)   are also known as objects or variables of a structure type.

66.

The (a)   is used in accessing structure members.