
COMPUTER PROGRAMMING 2 MIDTERM EXAM MCQ (2024-25))
Authored by JONARD LOPEZ
Information Technology (IT)
University
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
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
Danger online
Quiz
•
7th Grade - University
25 questions
Finals Quiz
Quiz
•
University
25 questions
Adobe After Effects Quiz
Quiz
•
University
25 questions
Lesson 02: Understanding Cyber Security Threats
Quiz
•
University
25 questions
Code.org lesson 3 and 4 quiz
Quiz
•
7th Grade - University
25 questions
OSS (QUIZ 5) - Memory Management
Quiz
•
University
25 questions
ml 6 mei
Quiz
•
University
25 questions
Introduction to MS - Excel
Quiz
•
9th Grade - University
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
Discover more resources for Information Technology (IT)
20 questions
Disney Trivia
Quiz
•
University
7 questions
Fragments, Run-ons, and Complete Sentences
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
10 questions
DNA Structure and Replication: Crash Course Biology
Interactive video
•
11th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
14 questions
Ch.3_TEACHER-led
Quiz
•
University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University