Java Unit 1

Java Unit 1

10th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

Arduino_Quiz

Arduino_Quiz

12th Grade

20 Qs

Kuis Dadakan ;)

Kuis Dadakan ;)

10th Grade - University

15 Qs

History of the computer

History of the computer

12th Grade

20 Qs

Python Quiz For Starters

Python Quiz For Starters

3rd Grade - Professional Development

17 Qs

EmTech Q2 Post Test 5

EmTech Q2 Post Test 5

11th Grade

15 Qs

Programming Quiz

Programming Quiz

8th - 10th Grade

15 Qs

Django-quiz

Django-quiz

5th Grade - University

20 Qs

J808 LO1 and LO2 planning project keywords / terms

J808 LO1 and LO2 planning project keywords / terms

9th - 11th Grade

15 Qs

Java Unit 1

Java Unit 1

Assessment

Quiz

Computers

10th - 12th Grade

Practice Problem

Hard

Created by

Jennie Phipps

Used 5+ times

FREE Resource

AI

Enhance your content in a minute

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

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

Access all questions and much more by creating a free account

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?