Java-I-ch02_quiz01

Java-I-ch02_quiz01

University

10 Qs

quiz-placeholder

Similar activities

Selenium

Selenium

University

10 Qs

Езикът Java - синтаксис

Езикът Java - синтаксис

KG - Professional Development

9 Qs

Avaliação Pensamento Computacional - Prático

Avaliação Pensamento Computacional - Prático

1st Grade - Professional Development

10 Qs

Arduino Lanjut_03

Arduino Lanjut_03

University

10 Qs

UVM - PAW - Semana 2

UVM - PAW - Semana 2

University

10 Qs

Conversão Alimentar e Eficiência Alimentar animal

Conversão Alimentar e Eficiência Alimentar animal

University

10 Qs

Quiz sobre Animales en Peligro de Extinción

Quiz sobre Animales en Peligro de Extinción

University

10 Qs

APP DOMINIO_UNITY

APP DOMINIO_UNITY

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

AI

Enhance your content

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?