The correct syntax of an output statement that prints a line and places the cursor on a new line.
What is Console.WriteLine();
In C#, both while loops and do-while loops are used for repetitive execution of a block of code based on a given ________.
What is condition?
In C#, functions are a fundamental building block of any program. They allow you to ________ a set of instructions that perform a specific task.
What is encapsulate?
A switch statement provides a concise and efficient way to handle multiple conditions compared to using multiple ______ statements.
What are nested if statements? or else-if statements?
In C#, an array is a data structure that allows you to store and manipulate a fixed-size collection of _____ of the same type.
What are elements?
Correct syntax for creating an array of integers that will store 5 numbers.
What is int[] numbers = new int[5];
If the condition is true, the loop body is executed. After each iteration, the condition is evaluated again, and the loop continues until __________
What is the condition evaluates as false?
To declare a function in C#, you need to specify its return type, name, and any _______ it accepts (if any).
What are parameters?
In C#, a switch statement is a control flow statement that allows you to select one of many possible execution ____ based on the value of an expression.
What are paths?
To declare an array, you need to specify the type of elements it will contain and the _____ of the array.
What is its size?
_____ is a powerful feature in Visual Studio that provides code completion, code suggestion, and error detection capabilities while you write code.
What is Intellisense?
int count = 1;
while (count <= 1) { Console.WriteLine(count);
count--; }
What is the problem with this code?
What is an infinite loop?
If the function doesn't return anything, you can use this keyword.
What is void?
In a switch statement, the expression is evaluated, and its value is compared with the values specified in the _____ labels.
What is case?
Array elements can be accessed using ______ indexing.
What is zero-based?
The correct syntax if you want to convert a string type value called input to a double type.
What is Convert.ToDouble(input);
A for loop in C# is a control flow statement that allows you to repeatedly execute a block of code based on a defined number of _______.
What are iterations?
To execute a function, you need to do this...
What is call? (call it)
This statement is used to exit the switch statement and continue execution after the switch block.
What is break?
You can retrieve the length of an array using this property...
What is Length property? or .Length
Correct syntax of an int type called totalSum that gets its value from the function called AddAllNums();
What is int totalSum = AddAllNums();
This component of a for loop typically involves declaring and assigning a value to a loop variable...
What is initialization?
AddNumbers(3, 5);
int AddNumbers(int a, int b) { int sum = a + b; return sum; }
In this example of a function, the numbers 3 and 5 are known as this...
What are arguments?
If no match is found, the code block associated with the _______ case (optional) is executed.
What is default?
The most common loop to iterate the elements of an array is this loop...
What is a for-loop?