Variables Review

Quiz
•
Computers
•
12th Grade
•
Easy
Nichole Niebur
Used 7+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following will properly declare an String named 'school' that has a value of "Millard North".
String school = "Millard North";
string school = "Millard North";
String school = 'Millard North';
String school = "Millard North"
Answer explanation
Did you notice the missing ;
2.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
Declare an integer named 'x' that has a value of '15'
3.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Declare an boolean named 'x' that has a value of 'false'
4.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Declare an double named 'x' that has a value of '15'
Answer explanation
Remember doubles hold floating point numbers so 15 would be stored as 15.0
5.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Declare an char named 'x' that has a value of '5'
Answer explanation
Remember char uses single quotes ' '
not double quotes " "
6.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Declare an String named 'x' that has a value of '5'
Answer explanation
Remember char uses single quotes ' '
String uses double quotes " "
7.
LABELLING QUESTION
1 min • 1 pt
What are the values in a, b, and c after executing each of the following statemets?
Answer explanation
Remember Java run in order top to bottom, so once something has changed that is the new value.
Create a free account and access millions of resources
Similar Resources on Wayground
8 questions
PYTHON

Quiz
•
12th Grade
10 questions
AP CSA Unit 1 & 2 Review

Quiz
•
9th - 12th Grade
10 questions
JS Practice Array & Function

Quiz
•
9th - 12th Grade
10 questions
PCEP Section 1E: Perform Input/Output console operations

Quiz
•
12th Grade
15 questions
AP CSP Unit 4: Lesson 15: Assessment Day

Quiz
•
9th - 12th Grade
12 questions
Python Variables Quiz

Quiz
•
12th Grade
10 questions
Python Strings

Quiz
•
12th Grade
15 questions
Topic 3 & 4 Practice - ArrayList and String Methods

Quiz
•
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