Java-I-ch02_quiz01

Java-I-ch02_quiz01

University

10 Qs

quiz-placeholder

Similar activities

Q8 - FundComp - Python Básico (En)

Q8 - FundComp - Python Básico (En)

University

10 Qs

Arduino Lanjut_03

Arduino Lanjut_03

University

10 Qs

Technical Outward Looking

Technical Outward Looking

University - Professional Development

6 Qs

Postes Integral Tertentu

Postes Integral Tertentu

10th Grade - University

10 Qs

Java Programming Quiz

Java Programming Quiz

University

10 Qs

Repaso 1

Repaso 1

University

6 Qs

Introduction to Arduino ( Part - I )

Introduction to Arduino ( Part - I )

University

15 Qs

C Programming Basics

C Programming Basics

University

10 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?