Java Basics MP1 Test 3

Java Basics MP1 Test 3

11th Grade

18 Qs

quiz-placeholder

Similar activities

Yr7- Understanding computers Lessons 1-3

Yr7- Understanding computers Lessons 1-3

7th - 11th Grade

20 Qs

Database e SQL

Database e SQL

11th Grade

20 Qs

History of Computers

History of Computers

6th - 12th Grade

15 Qs

Python Recap

Python Recap

7th Grade - University

20 Qs

Lua Review Corona SDK with Notepad++

Lua Review Corona SDK with Notepad++

10th - 12th Grade

15 Qs

การใช้โปรแกรม Google SketchUp

การใช้โปรแกรม Google SketchUp

11th Grade

20 Qs

Табличні величини та алгоритми їх опрацювання.

Табличні величини та алгоритми їх опрацювання.

5th - 11th Grade

14 Qs

Chapter 8: Safety and security

Chapter 8: Safety and security

10th - 11th Grade

14 Qs

Java Basics MP1 Test 3

Java Basics MP1 Test 3

Assessment

Quiz

Computers

11th Grade

Practice Problem

Hard

Created by

Patrick Bryar

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

A variable that holds a decimal number

String
boolean
int

double

2.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

It is a data type used to hold multiple characters, like words and sentences.

float

char

date

String

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What output will be produced by:

System.out.println("Hello");

System.out.print("Karel");

Hello

Karel

HelloKarel

Hello\nKarel

Error

4.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Media Image

What does the code segment output?

Media Image
Media Image
Media Image
Media Image

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the value of x after this code runs?

int x = 5;

x = 10;

x = 4;

5

10

4

true

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will the following code print? int n = 5; n++; n++; n += n; System.out.println(n);

12

40

14

18

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Refer to the following code segment:

The student wanted the output to be: 1 / 4 = 0.25

Which change to the first line would get the correct answer?

int myDouble = 1/4;

double myDouble = (double) 1/4;

double myDouble = (int) 1/4;

double myDouble = (int) (1.0/4.0);

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?