C# Programming

C# Programming

9th - 12th Grade

6 Qs

quiz-placeholder

Similar activities

พื้นฐาน ภาษา Visual Basic

พื้นฐาน ภาษา Visual Basic

11th Grade

10 Qs

Word basics

Word basics

8th - 12th Grade

10 Qs

conditional constructs in Java

conditional constructs in Java

10th Grade

10 Qs

Ce știm despre Internet?

Ce știm despre Internet?

4th Grade - University

10 Qs

แบบทดสอบหลังเรียน  photoshop cs //selection

แบบทดสอบหลังเรียน photoshop cs //selection

9th Grade

10 Qs

Xcode and Playgrounds

Xcode and Playgrounds

9th - 11th Grade

9 Qs

8525 AQA GCSE CS 3.7.1 Introduction to Relational Data

8525 AQA GCSE CS 3.7.1 Introduction to Relational Data

11th Grade

10 Qs

C# Programming

C# Programming

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

Nevin Morrison

Used 41+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?