C# Quiz for Beginners

Quiz
•
Computers
•
10th Grade
•
Hard
Aiden Rappoport
Used 5+ 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
Similar Resources on Wayground
18 questions
AP Computer Science A Post Unit 2 Check

Quiz
•
10th Grade - University
18 questions
CSP Units 1 & 2

Quiz
•
9th - 12th Grade
15 questions
CICS Test 2 Review

Quiz
•
9th - 12th Grade
20 questions
Python Basics 2

Quiz
•
9th - 12th Grade
15 questions
coding

Quiz
•
KG - Professional Dev...
15 questions
Javascript

Quiz
•
10th - 12th Grade
24 questions
S3 Python datatypes and variables

Quiz
•
8th - 10th Grade
20 questions
Python variables and operators quiz

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade