
Practice Test

Quiz
•
Computers
•
University
•
Hard
Chansreypich undefined
FREE Resource
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 2 pts
Which of the following is the first step in problem-solving?
a) writing code
b) testing and debugging
c) identifying the problem
d) creating an algorithm
2.
MULTIPLE CHOICE QUESTION
2 mins • 2 pts
Which data type is used to store a single character in Java?
a) double
b) char
c) int
d) String
3.
MULTIPLE CHOICE QUESTION
2 mins • 2 pts
Which operator is used to compare the equality of two values?
a) ==
b) =
c) !=
d) ===
4.
MULTIPLE CHOICE QUESTION
2 mins • 2 pts
Which loop construct is guaranteed to execute at least once, regardless of T/F?
a) for
b) while
c) if-else
d) nested-if
e) do-while
5.
MULTIPLE SELECT QUESTION
2 mins • 2 pts
Which of the following is NOT a valid variable name in Java?
a) _profit
b) #profit
c) profitCurrent
d) intProfit
6.
MULTIPLE SELECT QUESTION
2 mins • 2 pts
What is the output of the following code?
int x = 5;
System.out.println(x++);
a) 6
b) 5
c) 0
d) compilation error
7.
MULTIPLE CHOICE QUESTION
2 mins • 2 pts
Which access specifier has the widest scope?
a) public
b) private
c) default
d) protected
Create a free account and access millions of resources
Similar Resources on Wayground
38 questions
Unit_4_Object Oriented Programming with Java

Quiz
•
University
35 questions
[AP CSP] Programming with Conditionals [If, Elif, Else]

Quiz
•
9th Grade - University
41 questions
FINAL EXAM

Quiz
•
University
37 questions
Python Finals Quiz

Quiz
•
University
44 questions
Data Structures Quiz

Quiz
•
University
40 questions
Latihan Soal PSAJ/US XII

Quiz
•
12th Grade - University
40 questions
Java Programming

Quiz
•
University
35 questions
JavaScript Control Flow and Loops.

Quiz
•
10th Grade - University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade