CS402 T03a

CS402 T03a

Professional Development

10 Qs

quiz-placeholder

Similar activities

Security+ Study Guide-02 Understanding Identity & Access Mgnt

Security+ Study Guide-02 Understanding Identity & Access Mgnt

Professional Development

15 Qs

Ipad

Ipad

1st Grade - Professional Development

15 Qs

Информатика

Информатика

KG - Professional Development

8 Qs

Logical Cases

Logical Cases

Professional Development

12 Qs

DSA - Practice Quiz - 1

DSA - Practice Quiz - 1

University - Professional Development

15 Qs

NECTS- Code Debugging Elimination Round

NECTS- Code Debugging Elimination Round

Professional Development

5 Qs

Estructuras Selectivas C++

Estructuras Selectivas C++

7th Grade - Professional Development

10 Qs

Day 5 C Programming Quiz

Day 5 C Programming Quiz

Professional Development

10 Qs

CS402 T03a

CS402 T03a

Assessment

Quiz

Computers

Professional Development

Medium

Created by

Mike Wong

Used 3+ times

FREE Resource

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?