CS402 T03a

CS402 T03a

Professional Development

10 Qs

quiz-placeholder

Similar activities

Software Security

Software Security

University - Professional Development

10 Qs

C Programming

C Programming

Professional Development

10 Qs

Advance MS Excel Tips and Tricks

Advance MS Excel Tips and Tricks

Professional Development

10 Qs

Interesting Bird Facts

Interesting Bird Facts

KG - Professional Development

11 Qs

Streams

Streams

Professional Development

10 Qs

TECHNOLOGY

TECHNOLOGY

3rd Grade - Professional Development

14 Qs

HTML

HTML

University - Professional Development

15 Qs

ER Model

ER Model

Professional Development

10 Qs

CS402 T03a

CS402 T03a

Assessment

Quiz

Computers

Professional Development

Practice Problem

Medium

Created by

Mike Wong

Used 4+ 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

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

Create a free account and access millions of resources

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?