C# Quiz for Beginners

C# Quiz for Beginners

10th Grade

20 Qs

quiz-placeholder

Similar activities

Principles of Computer Science

Principles of Computer Science

10th - 12th Grade

20 Qs

GCSE Computer Science: Programming (Python)

GCSE Computer Science: Programming (Python)

9th - 12th Grade

25 Qs

C++ programming

C++ programming

7th - 12th Grade

20 Qs

Python

Python

6th - 10th Grade

17 Qs

AQA GCSE Computer Science - 3.2.2 Programming Concepts

AQA GCSE Computer Science - 3.2.2 Programming Concepts

8th - 10th Grade

20 Qs

Python Casting and Input

Python Casting and Input

8th - 11th Grade

15 Qs

Programming Constructs

Programming Constructs

9th - 10th Grade

20 Qs

C# 101 Assessment

C# 101 Assessment

9th - 12th Grade

20 Qs

C# Quiz for Beginners

C# Quiz for Beginners

Assessment

Quiz

Computers

10th Grade

Hard

Created by

Aiden Rappoport

Used 4+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Which one is the correct way to write a if statement using a Boolean.

if(myBool == true)

//code

if(myBool)

{

//code

}

if(myBool = true)

{

//code

}

if(myBool)

//code

2.

FILL IN THE BLANK QUESTION

1 min • 5 pts

You must use a double _____ ____ when you want to write an if statement using a float that equals 1.

3.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

What type of Variable supports decimals?

float

boolean

interger

string

4.

FILL IN THE BLANK QUESTION

1 min • 5 pts

_____ variable = 1.5f;

5.

FILL IN THE BLANK QUESTION

1 min • 5 pts

______ variable = "Text";

6.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

What would this code do?
if (myFloat == 5)

{

myFloat = 0;

}

If myFloat is equal to 5, then make myFloat equal 0.

If myFloat is greater than or equal to 5, then make myFloat equal 0.

When myFloat is equal to 5, then make myFloat equal 0.

When myFloat is greater than or equal to 5, then make myFloat equal 0.

7.

FILL IN THE BLANK QUESTION

1 min • 5 pts

____ variable = true;

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?