
COMPUTER PROGRAMMING 2 MIDTERM EXAM MCQ (2024-25))

Quiz
•
Information Technology (IT)
•
University
•
Hard
JONARD LOPEZ
Used 3+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main purpose of a compiler in programming?
To execute high-level code directly
To translate high-level code into machine code
To check for runtime errors
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a characteristic of a high-level programming language?
Platform dependency
Human-readable syntax
Requires a compiler or interpreter
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if a program contains a syntax error?
The compiler automatically corrects the error
The program executes but with incorrect results
The program fails to compile
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the term used to describe the order in which a program executes its instructions?
Syntax flow
Execution flow
Instruction cycle
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Java, what is the output of the compilation process?
Executable machine code
Bytecode
Source code with added optimizations
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an invalid variable name in Java?
_count
2value
$price
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary purpose of a variable in programming?
To define the flow of execution
To store and manage data dynamically
To provide documentation for the program
Create a free account and access millions of resources
Similar Resources on Wayground
25 questions
FOS QUIZ 7

Quiz
•
University
25 questions
THIRD ROUND BINGO

Quiz
•
University
34 questions
LẬP TRÌNH HĐT - BÀI 8

Quiz
•
University
29 questions
Java Mastery Challenge

Quiz
•
University
30 questions
CLOUD COMPUTING UNIT 3

Quiz
•
University
35 questions
Bootstrap Quiz

Quiz
•
University
30 questions
ELEC1_NA QUIZ 1

Quiz
•
University
35 questions
OPP Revision Unit I & II

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 Information Technology (IT)
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