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
12 questions
Data Mining and Trends

Quiz
•
12th Grade - University
17 questions
recap 12 miscellaneous H446 computer science

Quiz
•
12th Grade
10 questions
AP Computer Science Principles - Unit 3: App Design

Quiz
•
9th - 12th Grade
10 questions
GPU and Co-Processor Quiz

Quiz
•
12th Grade
17 questions
The computer Speed

Quiz
•
12th Grade
12 questions
Unit 7 - ArrayList - Test Review

Quiz
•
9th - 12th Grade
17 questions
CODE.ORG CSP UNIT 4 Boolean quiz#1

Quiz
•
9th - 12th Grade
10 questions
Von Neumann Architecture Quiz (GCSE AQA)

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade