Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Programming Fundamentals Quiz 2

Total questions: 19

Worksheet time: 10mins

Name
Class
Date
1.

What is the primary role of a computer programmer?

a)

To create user interfaces

b)

To design hardware components

c)

To write, modify, and test code

d)

To manage network systems

2.

What is a computer program?

a)

A debugging tool

b)

A programming language

c)

A collection of instructions for the computer

d)

A type of hardware

3.

Which of the following best describes programming?

a)

The process of testing software

b)

The process of writing documentation

c)

The process of thinking up instructions for a machine

d)

The process of designing hardware

4.

What does application software do?

a)

Permits users to perform coordinated tasks

b)

Runs independently of system software

c)

Translates high-level languages to machine language

d)

Checks syntax errors in code

5.

What is syntax in programming?

a)

A set of rules for writing programs

b)

The speed of program execution

c)

The method of debugging code

d)

The type of programming language used

6.

What is the function of a language translator?

a)

To create new programming languages

b)

To check syntax and translate programs

c)

To design user interfaces

d)

To manage computer hardware

7.

What does an assembler do?

a)

Translates high-level languages to machine language

b)

Generates error messages for programmers

c)

Converts assembly language to machine language

d)

Translates one line of code at a time

8.

Which of the following describes a compiler?

a)

Requires no memory to operate

b)

Only checks for syntax errors

c)

Translates the entire program at once

d)

Translates one line of code at a time

9.

What is a key feature of an interpreter?

a)

Only works with low-level languages

b)

Translates one line at a time and executes it

c)

Generates intermediate object code

d)

Translates the whole program at once

10.

Which programming languages typically use interpreters?

a)

C and C++

b)

Python and Ruby

c)

Java and C#

d)

COBOL and Fortran

11.

What is the Programming Life Cycle (PLC)?

a)

The design of user interfaces

b)

The steps involved in programming

c)

The process of debugging software

d)

The method of translating code

12.

What happens when an interpreter encounters an error?

a)

It ignores the error

b)

It continues executing the program

c)

It reports the error after the program ends

d)

It stops execution and reports the error immediately

13.

Which of the following is NOT a type of language translator?

a)

Assembler

b)

Compiler

c)

Debugger

d)

Interpreter

14.

What is the main difference between an interpreter and a compiler?

a)

Interpreters execute code line by line

b)

Compilers provide immediate feedback on errors

c)

Interpreters translate the whole program at once

d)

Compilers are used for low-level languages

15.

What is the purpose of syntax-error messages?

a)

To translate code into machine language

b)

To inform the programmer of syntax errors

c)

To improve program performance

d)

To execute the program

16.

What is a key characteristic of application software?

a)

It can run without system software

b)

It is designed for specific tasks

c)

It translates programming languages

d)

It is used for hardware management

17.

What is the role of a programmer in maintaining software?

a)

To create user manuals

b)

To design hardware components

c)

To ensure systems run smoothly

d)

To write new programming languages

18.

Which of the following best describes the relationship between application software and system software?

a)

Application software can run independently

b)

System software is not necessary for application software

c)

Application software depends on system software to execute

d)

They are the same type of software

19.

What is the significance of the programming process?

a)

It is only necessary for debugging

b)

It is essential for transforming ideas into code

c)

It allows for the creation of hardware

d)

It helps in designing user interfaces