
B4 - Variables and the Assignment Statement
Quiz
•
Other
•
University
•
Practice Problem
•
Hard

Ahmetcan türk
Used 4+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one of the following is a reserved word?
apple
7up
grandTotal
boolean
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one of the following is NOT a correct variable name?
2bad
zero
theLastValueButOne
year2000
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one of the following declarations is NOT correct?
double duty;
float loan;
boolean value = 12;
int start = 34, end = 99;
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following program output?
class question4
{
public static void main ( String[] args )
{
int unitCost = 8;
int items = 5;
System.out.println("total cost: " + (unitCost * items) );
}
}
total cost: + 40
total cost: 8*5
total cost: 40
"total cost: " 40
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following shows the syntax of an assignment statement?
variableName = expression;
expression = expression;
expression = variableName;
dataType = variableName;
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the two steps that take place when an assignment statement is executed?
(i) Evaluate the Expression, and (ii) Store the value in the variable.
(i) Store the value in the variable, and (ii) Evaluate the Expression.
(i) Reserve memory , and (ii) fill it with a number.
(i) Evaluate the variable, and (ii) store the results.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is an expression?
The same thing as a statement.
An expression is a list of statements that make up a program
An expression is a combination of literals, operators, variables, and parentheses used to calculate a value.
An expression is a number expressed in digits.
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?
Similar Resources on Wayground
15 questions
Thương Hiệu
Quiz
•
University - Professi...
15 questions
Chayamana Quiz Competition
Quiz
•
1st Grade - University
11 questions
The year 2021
Quiz
•
7th Grade - University
10 questions
PC-MAÑANERA-RM-01
Quiz
•
University
10 questions
Chapter1-intro to statistics part1
Quiz
•
University
15 questions
Silver challenge exam 3
Quiz
•
University
13 questions
Session 3
Quiz
•
University
15 questions
Computer System Servicing: Occupational Health and Safety
Quiz
•
10th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Other
7 questions
How James Brown Invented Funk
Interactive video
•
10th Grade - University
5 questions
Helping Build the Internet: Valerie Thomas | Great Minds
Interactive video
•
11th Grade - University
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
19 questions
Review2-TEACHER
Quiz
•
University
15 questions
Pre2_STUDENT
Quiz
•
University
20 questions
Ch. 7 Quadrilateral Quiz Review
Quiz
•
KG - University
