
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
25 questions
C Programming Language Quiz

Quiz
•
University
25 questions
C- Geniusia

Quiz
•
University
25 questions
Compro. Final 1/64 part1

Quiz
•
University
23 questions
PYTHON - 14.07.2023

Quiz
•
University
30 questions
BASIC PYTHON

Quiz
•
University
29 questions
OOPS Quiz 2

Quiz
•
University
30 questions
Java and OOP Multiple Choice Questions

Quiz
•
University
30 questions
Java Programming

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University