C# Programming
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Hard
Nevin Morrison
Used 41+ times
FREE Resource
Enhance your content in a minute
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
string[] animal = new string[]{"lion", "tiger","zebra","elephant"};
What is the value of animal[2];
lion
tiger
zebra
elephant
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is happening here:
double number1 = double.Parse(textBox1.Text);
A text box is being created.
The value of the textbox is being converted to a double.
The textbox is being set to the value of the variable.
An integer is being parsed.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The following is and example of a(n):
private void button1_Click(object sender, EventArgs e)
{
// Do something here.
}
Function
Event Handler
Method
Button
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What statement is true about the following class?
class ScientificCalculator : Calculator
{
public double expo(double num1, double num2)
{
double total = num1;
for(int i = 1;i < num2;i++)
{total = total * num1;}
return total;
}
}
It contains an array variable.
It contains an addition method.
Its name is Calculator.
It inherits from a Calculator class.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The following statement does what?
label1.Text = total.ToString();
Sets the value of a String.
Sets the value of a word.
Sets the text value of a label.
Creates a new label.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The following code generates what:
int i = 7;
if ( i <= 7)
{MessageBox.Show("Hi");}
else
{MessageBox.Show("Bye");}
A message box that says "Bye".
A console output "Hi".
A message box that says "Hi"
A console output that says "Bye"
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
10° Bimestral informática 3° periodo
Quiz
•
10th Grade
10 questions
Lesson 01 Unit 1 Excel 2019/365 MOAC
Quiz
•
9th - 12th Grade
10 questions
Database Quiz - St. Boniface
Quiz
•
10th Grade
10 questions
AP Computer Science Principles - Unit 7: Parameters, Returns
Quiz
•
9th - 12th Grade
10 questions
Empowerment Technologies Quiz 2
Quiz
•
11th Grade
11 questions
AP CSP Review 11Q
Quiz
•
10th - 12th Grade
10 questions
Application Software
Quiz
•
11th Grade - University
10 questions
Python- Operators
Quiz
•
12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
