C# Quiz for Beginners

C# Quiz for Beginners

10th Grade

20 Qs

quiz-placeholder

Similar activities

Elementele de bază ale limbajului C++

Elementele de bază ale limbajului C++

10th Grade

17 Qs

Python Basics Review (TSK)

Python Basics Review (TSK)

9th - 12th Grade

20 Qs

java

java

10th Grade

15 Qs

Basic Python

Basic Python

10th - 12th Grade

20 Qs

Ôn tập KTGK. Bài 18. Các lệnh vào ra đơn giản

Ôn tập KTGK. Bài 18. Các lệnh vào ra đơn giản

10th Grade

15 Qs

Dasar Pemrograman 3

Dasar Pemrograman 3

10th - 11th Grade

20 Qs

Algoritmusok

Algoritmusok

9th - 12th Grade

20 Qs

Python basics

Python basics

9th - 12th Grade

16 Qs

C# Quiz for Beginners

C# Quiz for Beginners

Assessment

Quiz

Computers

10th Grade

Hard

Created by

Aiden Rappoport

Used 6+ 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?