Search Header Logo

CS402 T03a

Authored by Mike Wong

Computers

Professional Development

Used 4+ times

CS402 T03a
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

  1. 1. What is the result of 1 > 2 in Java?

1

2

true

false

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

2. Which data type does a conditional expression return in Java?

int

boolean

char

float

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

3. What will if (radius >= 0) check?

If radius is positive

If radius is negative

If radius is equal to zero

If radius is a whole number

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

4. What symbol is used to represent the AND operator in Java?

||

^

&&

!

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

5. Which operator is used to invert a boolean value?

&&

||

^

!

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

6. Which statement correctly checks if i is equal to j?

i >= j

i = j

i == j

i > j

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What will be printed by the following code if score is 69.9?

if (score >= 70.0)

System.out.print("C");

else

System.out.print("F");

C

F

runtime error

syntax error

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?