A variable that holds a decimal number
Java Basics MP1 Test 3

Flashcard
•
Computers
•
11th Grade
•
Hard
Quizizz Content
FREE Resource
Student preview

18 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Back
double
2.
FLASHCARD QUESTION
Front
It is a data type used to hold multiple characters, like words and sentences.
Back
String
3.
FLASHCARD QUESTION
Front
What output will be produced by:
System.out.println("Hello");
System.out.print("Karel");
Back
Hello
Karel
4.
FLASHCARD QUESTION
Front
What does the code segment output?
Back
5.
FLASHCARD QUESTION
Front
What is the value of x after this code runs?
int x = 5;
x = 10;
x = 4;
Back
4
6.
FLASHCARD QUESTION
Front
What will the following code print?
int n = 5;
n++;
n++;
n += n;
System.out.println(n);
Back
14
7.
FLASHCARD QUESTION
Front
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? Options: int myDouble = 1/4;, double myDouble = (double) 1/4;, double myDouble = (int) 1/4;, double myDouble = (int) (1.0/4.0);
Back
double myDouble = (double) 1/4;
Create a free account and access millions of resources
Similar Resources on Quizizz
16 questions
AP CSA Primitive Types Practice

Flashcard
•
11th Grade
13 questions
java variables 1

Flashcard
•
9th - 12th Grade
18 questions
AP CSA Unit 1 Review

Flashcard
•
10th - 12th Grade
13 questions
AP CSA Unit 4 Review

Flashcard
•
11th Grade
15 questions
Arduino Lesson 6: Potentiometers

Flashcard
•
11th Grade
15 questions
AP Computer Science A Review 1

Flashcard
•
10th - 12th Grade
14 questions
AP CS ArrayLists

Flashcard
•
12th Grade
15 questions
4 Arduino: Digital Inputs

Flashcard
•
11th Grade
Popular Resources on Quizizz
20 questions
math review

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
10 questions
Human Body Systems and Functions

Interactive video
•
6th - 8th Grade
19 questions
Math Review

Quiz
•
3rd Grade
45 questions
7th Grade Math EOG Review

Quiz
•
7th Grade
Discover more resources for Computers
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
20 questions
Investing

Quiz
•
9th - 12th Grade
20 questions
Insurance

Quiz
•
9th - 12th Grade
20 questions
Paying for College

Quiz
•
9th - 12th Grade
20 questions
Banking

Quiz
•
9th - 12th Grade
20 questions
Managing Credit

Quiz
•
9th - 12th Grade
20 questions
-AR -ER -IR present tense

Quiz
•
10th - 12th Grade