
Computer Programming 1 Practice Midterms
Authored by Kharl Nadonza
Computers
University

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
28 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Java is a
Compiled Language
Interpreted Language
Both Compiled and Interpreted Language
None of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the System.out.println(10%3);?
1
3
0
10
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following loops is guaranteed to execute at least once?
for loop
while loop
do while loop
all of the above
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax for an if statement in Java?
if condition { }
if (condition) { }
if {condition}
if [condition] { }
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to take user input in Java?
Scanner sc = new Scanner(System.in)
Scanner sc = new Input(System.in)
cin >> x;
input(x);
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of System.out.println(5 + 3 + "Hello" + 2 + 1);?
8Hello3
8Hello21
53Hello2
Hello531
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a valid identifier in Java?
num_1
_value
2count
MAX_VALUE
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
25 questions
Cellular wireless networks
Quiz
•
University
25 questions
PAS Kelas 7 Ganjil
Quiz
•
7th Grade - University
25 questions
ITEC 103 | SLM 1 QUIZ
Quiz
•
University
25 questions
QUIZ 2 XI4
Quiz
•
11th Grade - University
26 questions
Analysis Algorithms Introduction
Quiz
•
University
25 questions
IT 104A Quiz - Module 3
Quiz
•
University
25 questions
Train Brain
Quiz
•
University
23 questions
Secure Programming Practices
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade