Java Basics MP1 Test 3

Quiz
•
Computers
•
11th Grade
•
Hard
Patrick Bryar
FREE Resource
18 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
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
What does the code segment output?
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
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
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);
Create a free account and access millions of resources
Similar Resources on Wayground
16 questions
Parts of a Method (Java)

Quiz
•
9th Grade - University
22 questions
CodeHS AP CSP Unit 3 Review

Quiz
•
11th - 12th Grade
16 questions
Arithmetic Types Declare Initialize Relation Logical Ops

Quiz
•
9th Grade - University
20 questions
IST CodeHS Unit 2 Robot Coding Review

Quiz
•
9th - 12th Grade
20 questions
JavaScript Basics CodeHS

Quiz
•
7th - 12th Grade
15 questions
Java Scanner Quiz

Quiz
•
11th Grade
20 questions
PTS BasisData XI (Maret2020)

Quiz
•
11th Grade
15 questions
Array

Quiz
•
10th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade