Java Unit 1

Java Unit 1

10th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

AP-Computer Science A

AP-Computer Science A

12th Grade

19 Qs

SK 3.1.3 Pemalar, Pembolehubah dan Jenis data

SK 3.1.3 Pemalar, Pembolehubah dan Jenis data

11th Grade

15 Qs

BABIV DASAR PEMROGRAMAN

BABIV DASAR PEMROGRAMAN

10th Grade

20 Qs

GCSE Computer Science Data types

GCSE Computer Science Data types

10th - 12th Grade

18 Qs

Sains Komputer Tingkatan 5 - 2.1.3 SQL: Membina Pangkalan..

Sains Komputer Tingkatan 5 - 2.1.3 SQL: Membina Pangkalan..

10th - 12th Grade

15 Qs

Java Fundamentals

Java Fundamentals

11th Grade

17 Qs

Dasar Pemrograman-1

Dasar Pemrograman-1

10th Grade

20 Qs

pemrograman dasar c++

pemrograman dasar c++

11th Grade

15 Qs

Java Unit 1

Java Unit 1

Assessment

Quiz

Computers

10th - 12th Grade

Hard

Created by

Jennie Phipps

Used 5+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is used to indicate a new line?

\n

\"

\'

\\

\t

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a legal variable name in Java?

3average

char

test.1

ans

the answer

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Assuming that "scan" is a properly initialized Scanner variable, which of the following correctly inputs a String?

String val = scan.nextValue();

String val = scan.nextDouble();

String val = scan.nextInt();

String val = scan.nextLine();

String val = nextDouble();

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a primitive data type?

double

int

char

String

All of the above options are primitive data types

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Put the following data types in order from smallest to largest (in terms of memory used).

int, char, double, String

int, double, char, String

char, int, double, String

double, char, int, String

double, int, char, String

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is modular division NOT used for?

money calculations

patterns

converting decimals to whole numbers

testing even and odd numbers

time calculations

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is (6 % 2) * 7?

21

7

1

0

14

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?