Search Header Logo

quiz 5

Authored by Kyle Yap

Mathematics

1st Grade

30 Questions

Used 2+ times

quiz 5
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

TJ05_q01.  The symbol:

==

is:

it is not an operator

an assignment operator

a relational operator

none of the other choices is correct

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

TJ05_q02.   A relational operator:

creates a relation

none of the other choices is correct

returns 0 or 1

could be + or -

can return either true or false

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

TJ05_q03. The following:

5 < "6"

is a valid application of a relational operator

true

false

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

TJ05_q04. When evaluating the expression:

5 < 6.0 

this is not a valid expression

Java automatically converts the 6.0 to 6

both the 5 and the 6.0 are converted to Strings

Java automatically converts the 5 to 5.0

None of the other choices is correct

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

TJ05_q06. The following code:

String fruit1 = "Apple";

String fruit2 = "Orange";

System.out.println(fruit1.equals(fruit2));

the other choices are incorrect

 

produces an error

 

prints true

 

doesn't print anything

 

prints false

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

TJ05_q07.  The following expression:

5 < 10 && 5 > 10

the other choices are false

 

is true

 

is false

 

produces an error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

TJ05_q08.  Consider the following fragment of code:

if (x > 0) { if (x < 10) {

System.out.println("positive single digit number."); }

}

Which of the following is equivalent?

if (x > 0 and < 10) {

            System.out.println("positive single digit number.");

        }

if (x > 0 || x < 10) {

            System.out.println("positive single digit number.");

  if (x > 0 && x < 10) {

            System.out.println("positive single digit number.");

        }

none of the other choices is correct

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?