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 Quizizz
20 questions
AP CS A Unit 3

Quiz
•
9th - 12th Grade
15 questions
ASK F2 -KOD ARAHAN (PYTHON)

Quiz
•
1st Grade - University
15 questions
Basic Python Coding

Quiz
•
11th - 12th Grade
16 questions
Variables and Data Types Knowledge Check

Quiz
•
9th - 12th Grade
20 questions
Java Values and datatypes

Quiz
•
9th - 12th Grade
18 questions
GCSE Computer Science Data types

Quiz
•
10th - 12th Grade
15 questions
2D Arrays

Quiz
•
9th - 12th Grade
20 questions
Java Casting & Booleans

Quiz
•
10th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University