Java Basics MP1 Test 3

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

18 questions
Show all answers
1.
FLASHCARD QUESTION
Front
A variable that holds a decimal number
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 Wayground
18 questions
Ripasso c++ - Array - 4BI

Flashcard
•
11th Grade
18 questions
Basic Python and Console Interaction Flashcard

Flashcard
•
12th Grade
15 questions
Alkanes and Alkenes

Flashcard
•
11th Grade
10 questions
❄⛄AP CSA - Unit 6 Review

Flashcard
•
9th - 12th Grade
9 questions
عناوين العمليات بلغة جافا

Flashcard
•
10th Grade - University
10 questions
CAASPP Incentive Presentation

Flashcard
•
11th Grade
20 questions
Basic Programming Concepts in C++ Language

Flashcard
•
KG
10 questions
Types of Chemical Reactions

Flashcard
•
10th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade