Arithmetic Types Declare Initialize Relation Logical Ops

Arithmetic Types Declare Initialize Relation Logical Ops

9th Grade - University

16 Qs

quiz-placeholder

Similar activities

basisdata1

basisdata1

University

20 Qs

OOP 1 Undiksha

OOP 1 Undiksha

12th Grade - University

13 Qs

Pengetahuan Dasar Komputer

Pengetahuan Dasar Komputer

9th - 12th Grade

20 Qs

8525 AQA GCSE  3.1.1 Pseudo-code

8525 AQA GCSE 3.1.1 Pseudo-code

10th - 11th Grade

14 Qs

Networking

Networking

11th Grade

12 Qs

1ºDAM/DAW - Entornos de Desarrollo - UD1-6 - Prof. C. Boni

1ºDAM/DAW - Entornos de Desarrollo - UD1-6 - Prof. C. Boni

University - Professional Development

20 Qs

BÀI 14- THUẬT TOÁN TÌM KIẾM TUẦN TỰ

BÀI 14- THUẬT TOÁN TÌM KIẾM TUẦN TỰ

6th Grade - University

14 Qs

PTS Informatika Kelas 9 Semester Ganjil 2021-2022

PTS Informatika Kelas 9 Semester Ganjil 2021-2022

9th Grade

20 Qs

Arithmetic Types Declare Initialize Relation Logical Ops

Arithmetic Types Declare Initialize Relation Logical Ops

Assessment

Quiz

Computers

9th Grade - University

Medium

Created by

Raymond Chan

Used 622+ times

FREE Resource

AI

Enhance your content in a minute

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

16 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

5 mins • 1 pt

Which Java type(s) can hold decimals? (Choose all that apply)

int

float

double

String

2.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

34 % 35 % 36 % 37 % 38

0.00001919212

38

34

Impossible

3.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

What does the following code print?

System.out.println(1 / 3);

0.3333333333333333

0

an error

0.3

4.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

What will the following code print?

system.out.println(2.0 / 9);

0.222222222222222 (14 - 15 significant digits)

0

error

5.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Consider the following code segment.


System.out.print("Java is");

System.out.println("fun ");

System.out.print("and cool!");


What is printed as a result of executing the code segment?

Java is fun and cool!

Java isfun

and cool!

Java is

fun

and cool!

Java is fun

and cool!

6.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Which of the following correctly assigns a value to the variable x?

x int = 5;

int x;

x = 5;

int x

x = 5

7.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Which of the following correctly declares a variable x of type int?

x int = 5;

int x;

x = 5;

int x

x = 5

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?