
Variables Review
Authored by Nichole Niebur
Computers
12th Grade
Used 7+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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 BLANKS QUESTION
30 sec • 1 pt
Declare an integer named 'x' that has a value of '15'
(a)
3.
FILL IN THE BLANKS QUESTION
1 min • 1 pt
Declare an boolean named 'x' that has a value of 'false'
(a)
4.
FILL IN THE BLANKS QUESTION
1 min • 1 pt
Declare an double named 'x' that has a value of '15'
(a)
Answer explanation
Remember doubles hold floating point numbers so 15 would be stored as 15.0
5.
FILL IN THE BLANKS QUESTION
1 min • 1 pt
Declare an char named 'x' that has a value of '5'
(a)
Answer explanation
Remember char uses single quotes ' '
not double quotes " "
6.
FILL IN THE BLANKS QUESTION
1 min • 1 pt
Declare an String named 'x' that has a value of '5'
(a)
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.
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?