Java-I-ch02_quiz01

Java-I-ch02_quiz01

University

10 Qs

quiz-placeholder

Similar activities

PROGRAMACION I

PROGRAMACION I

University

8 Qs

Q8 - FundComp - Python Básico (En)

Q8 - FundComp - Python Básico (En)

University

10 Qs

2021_DASPRO_PERTEMUAN2

2021_DASPRO_PERTEMUAN2

University

10 Qs

Python Skills

Python Skills

1st Grade - Professional Development

15 Qs

Data Analytics Unit 3 Quiz

Data Analytics Unit 3 Quiz

University

15 Qs

OCA Test I

OCA Test I

KG - University

10 Qs

independent and dependent variables

independent and dependent variables

5th Grade - Professional Development

15 Qs

pemvis

pemvis

University

9 Qs

Java-I-ch02_quiz01

Java-I-ch02_quiz01

Assessment

Quiz

Science

University

Hard

Created by

Sreng Vichet

Used 6+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable in Java?

  • A) A storage location in memory

  • B) A data type in Java

  • C) A method that performs calculations

  • D) A reserved word in Java

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a correct declaration of a variable in Java?

  • A) int num = 100;

  • B) 100 = int num;

  • C) num int = 100;

  • D) int 100 = num;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the result of the following code?

10

20

30

40

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used to find the remainder after division in Java?

/

#

%

++

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

3

5

8

15

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type should be used to store a number with a decimal in Java?

int

double

char

boolean

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What does the following code print?

3

3.3333

3.0

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?