B4 - Expressions and Arithmetic Operators

B4 - Expressions and Arithmetic Operators

University

10 Qs

quiz-placeholder

Similar activities

PokeQuiz #001 - Pokedex

PokeQuiz #001 - Pokedex

KG - Professional Development

10 Qs

Quantitative Regulations

Quantitative Regulations

University

10 Qs

FEV

FEV

University

10 Qs

Quiz Informasi dari Internet untuk Menunjang Pekerjaan Kantor

Quiz Informasi dari Internet untuk Menunjang Pekerjaan Kantor

University

15 Qs

IMR552 - CHAPTER 3 (GROUP 5)

IMR552 - CHAPTER 3 (GROUP 5)

University

12 Qs

PA2 LE GAMES

PA2 LE GAMES

University

10 Qs

PASAR MODAL

PASAR MODAL

University

10 Qs

Housekeeping & Sustainability

Housekeeping & Sustainability

University

10 Qs

B4 - Expressions and Arithmetic Operators

B4 - Expressions and Arithmetic Operators

Assessment

Quiz

Other

University

Practice Problem

Hard

Created by

Ahmetcan türk

Used 6+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one of the following is NOT a correct arithmetic expression?

alpha

(alpha / momentum) - 12.4

alpha ( / momentum - 12.4 )

((alpha / momentum) - 12.4)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an operand?

Another name for number.

Another name for integer.

One of the arithmetic symbols like *, +, -, and /.

A value that is acted upon by an operator.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Assume the following declarations:

short a=12 ;

int b=33 ;


float x = 2.3;

double y = 3.14;


Which one of the following expressions will NOT be evaluated using double precision floating point?

a+x

1.5 + 8.6

a+b

x / y

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the following program output?


class question4

{

public static void main ( String[] args )

{

int totalCost = 6;

int items = 12;

System.out.println("cost per item: " + totalCost/items );

}

}

cost per item: .5

cost per item: 0

cost per item: 1

cost per item: +6/12

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of evaluating the following expression?

( 1/2 + 3.5) * 2.0

8.0

8

7.0

0

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of evaluating the following expression?

-32 / 6

-2

-5

-5.3333

+6

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

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?