Search Header Logo

Variables and Expressions

Authored by Shruti Garg

Computers, Mathematics, Instructional Technology

6th - 10th Grade

Used 4+ times

Variables and Expressions
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Process of assigning value to a variable before it is being used is called:

Initialization

Operation

Realization

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int k1, k2 = 23 is an example of:

Adding values in a function

Variable declaration

None of them

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a correct variable name?

2bad

Zero

theLastValueButOne

Year2000

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following declarations is NOT correct?

Double duty;

Float loan = 12.3;

Boolean value = 21;

Int start = 45, end = 99;

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 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.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the value of the following expression? (2 - 6) / 2 + 9

7

8

9

10

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?