
C# Quiz for Beginners
Authored by Aiden Rappoport
Computers
10th Grade
Used 8+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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;
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?