quiz
Question 1 Which of the following statements is incorrect?
Question 2 A ______ file is one that holds the C# code that handles events related to the controls on the form and other events such as what should happen when the form first loads in the browser.
Question 3 Which of the following is incorrect?
Question 4 Upon execution of the following code block, what will be the value of the variable "result"?
int i = 1;
int k = 6;
string result = String.Empty;
i++;
k -= 2;
i *= k;
if (i < 5 && k != i)
result = "if";
else if (k == 3 && i == 8)
result = "else if";
else if (k == 3 || i == 8)
result = "else if (2)";
else
result = "else";
Question 5 At the time the following loop is exited, what value will the integer variable "result" hold?
int result = 0;
for (int i = 0; i < 7; i++)
{
if (i == 3)
continue;
if (i == 5)
break;
result += i;
}
Question 6 In the following block two nested loops are presented. Upon exiting the outer loop, what value will the variable k hold?
int k = 6;
int i = 0;
do
{
while (i != k)
{
k -= i;
i++;
}
k++;
}
while(i < 2);
Question 7 With regards to methods, which of the following statements is incorrect?
Question 8 Which statement about Master Pages is correct?
Question 9 Which of the following is not a pillar of Object Oriented Programming (OOP)?
Question 10 With regards to classes, which of the following statements is incorrect?