Variables and Expressions

Variables and Expressions

6th - 10th Grade

7 Qs

quiz-placeholder

Similar activities

Python Basics

Python Basics

6th - 12th Grade

9 Qs

Python - Variables and Expressions

Python - Variables and Expressions

9th Grade

10 Qs

NISD CS AP Exam Prep

NISD CS AP Exam Prep

10th - 12th Grade

12 Qs

Lesson 15 Vocab Review

Lesson 15 Vocab Review

7th Grade

12 Qs

Python Basics: Operators and Variables

Python Basics: Operators and Variables

10th Grade

10 Qs

Unit 6 - Algebra Vocab.- Quiz Preparation

Unit 6 - Algebra Vocab.- Quiz Preparation

6th - 8th Grade

11 Qs

Java Programming

Java Programming

9th Grade - University

11 Qs

Reference and Pointers in C++

Reference and Pointers in C++

6th - 8th Grade

10 Qs

Variables and Expressions

Variables and Expressions

Assessment

Quiz

Computers, Mathematics, Instructional Technology

6th - 10th Grade

Hard

Created by

Shruti Garg

Used 4+ times

FREE Resource

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