
Java Fundamentals – Multiple Choice Quiz

Quiz
•
Computers
•
10th Grade
•
Hard
Ganyaraj Gerthila
Used 1+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a primitive data type in Java?
String
ArrayList
int
Scanner
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to declare a double variable with a value of 3.14159?
double piValue = "3.14159";
double piValue = 3.14159;
float piValue = "3.14159";
int piValue = 3.14159;
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the key difference between System.out.print() and System.out.printf()?
print() is faster than printf()
printf() is used for formatted output
print() adds a new line after output
printf() is used for input
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement correctly increments a variable x by 1?
x += 1;
x--;
x =+ 1;
x == 1;
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does a return value in a method do?
It prints a result
It exits the program
It sends a result back to the caller
It initializes an object
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How is a do-while loop different from a while loop?
It uses an else block
It checks the condition before running the loop
It only runs once
It always runs at least once
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? System.out.print("Good "); System.out.println("Morning!");
Good Morning!
Good
Morning!
Good \n Morning!
Create a free account and access millions of resources
Similar Resources on Wayground
26 questions
P5.js Review - Part 2

Quiz
•
10th Grade
26 questions
Computational Thinking

Quiz
•
10th Grade
25 questions
Algorithma dan Pemrograman

Quiz
•
10th Grade
25 questions
Quiz Básico de Java

Quiz
•
7th Grade - Professio...
25 questions
Java Programming Quizz-GX

Quiz
•
9th - 12th Grade
25 questions
Data Structures - Lists & Trees

Quiz
•
10th Grade
33 questions
General Programming Terms

Quiz
•
10th - 12th Grade
34 questions
Competitive Programming: Intro to the Arts of Problem Solving

Quiz
•
9th - 12th 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
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade