Java Basics Quiz for CH/PT Students
Quiz
•
Information Technology (IT)
•
University
•
Practice Problem
•
Medium
Geshani ITUM
Used 24+ times
FREE Resource
Enhance your content in a minute
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 5 pts
What does System.out.println() do?
Takes user input
Outputs text to the console
Ends a program
None of the above
2.
MULTIPLE CHOICE QUESTION
20 sec • 5 pts
Which keyword is used to define a class in Java?
class
define
struct
object
3.
MULTIPLE CHOICE QUESTION
20 sec • 5 pts
What is the purpose of the public keyword in Java?
It hides the method or class from other classes.
It allows the method or class to be accessed from outside.
It specifies that the method is private.
None of the above.
4.
MULTIPLE CHOICE QUESTION
20 sec • 5 pts
Which of the following is a correct way to declare a variable in Java?
int 1x = 10;
int x = 10;
integer x = 10;
num x = 10;
5.
MULTIPLE CHOICE QUESTION
20 sec • 5 pts
Which data type is used to store a single character in Java?
char
String
int
boolean
6.
MULTIPLE CHOICE QUESTION
20 sec • 5 pts
What will be the value of the variable z after executing the code below? int x = 5, y = 10; int z = x + y;
5
10
15
50
7.
MULTIPLE CHOICE QUESTION
20 sec • 5 pts
What will be the result of the following code? int a = 10, b = 3; System.out.println(a % b);
1
3
10
0
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
12 questions
Network Technology (BSIT 4)
Quiz
•
University
15 questions
POST-TEST
Quiz
•
University
20 questions
Kelas 8 - Halaman 10 (UH Bab 1)
Quiz
•
8th Grade - University
15 questions
Recap Handout 3 & 4
Quiz
•
6th Grade - University
20 questions
Kuis Ms Word 1
Quiz
•
7th Grade - University
15 questions
Quiz #2
Quiz
•
University
15 questions
Table,Image formatting
Quiz
•
5th Grade - University
15 questions
Fundamentos de Bases de Datos
Quiz
•
10th Grade - University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
9 questions
Principles of the United States Constitution
Interactive video
•
University
18 questions
Realidades 2 2A reflexivos
Quiz
•
7th Grade - University
10 questions
Dichotomous Key
Quiz
•
KG - University
25 questions
Integer Operations
Quiz
•
KG - University
7 questions
What Is Narrative Writing?
Interactive video
•
4th Grade - University
20 questions
SER vs ESTAR
Quiz
•
7th Grade - University
