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

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

University

30 Qs

quiz-placeholder

Similar activities

PPL (Quiz 5)  Procedures and Functions

PPL (Quiz 5) Procedures and Functions

University

25 Qs

Revision Quiz 3

Revision Quiz 3

9th Grade - University

30 Qs

Microsoft Visual Studio and C# Quiz

Microsoft Visual Studio and C# Quiz

University

28 Qs

Fundamentals of programming Quiz

Fundamentals of programming Quiz

University

25 Qs

SAS Dasar Program Keahlian RPL Kelas X

SAS Dasar Program Keahlian RPL Kelas X

10th Grade - University

25 Qs

WEB SYSTEM AND TECHNOLOGY MIDTERM REVIEWER

WEB SYSTEM AND TECHNOLOGY MIDTERM REVIEWER

University

28 Qs

Java Fundamentals Quiz

Java Fundamentals Quiz

University

30 Qs

General quiz

General quiz

University

25 Qs

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

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

Assessment

Quiz

Information Technology (IT)

University

Hard

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?