
Computer Programming 1 Practice Midterms

Quiz
•
Computers
•
University
•
Hard
Kharl Nadonza
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
23 questions
Java Array

Quiz
•
University
25 questions
Java Review

Quiz
•
9th Grade - University
30 questions
blitz

Quiz
•
University
31 questions
JAVA STRINGS

Quiz
•
University
30 questions
OODP_Batch 1_Quiz

Quiz
•
University
30 questions
SD 2 (BSCPE 3A)

Quiz
•
University
31 questions
java collections

Quiz
•
University
25 questions
UTS Pemrograman Dasar Kelas 10 TKJ

Quiz
•
10th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University