WorksheetsProgramming Fundamentals Quiz 2
Total questions: 19
Worksheet time: 10mins
What is the primary role of a computer programmer?
To create user interfaces
To design hardware components
To write, modify, and test code
To manage network systems
What is a computer program?
A debugging tool
A programming language
A collection of instructions for the computer
A type of hardware
Which of the following best describes programming?
The process of testing software
The process of writing documentation
The process of thinking up instructions for a machine
The process of designing hardware
What does application software do?
Permits users to perform coordinated tasks
Runs independently of system software
Translates high-level languages to machine language
Checks syntax errors in code
What is syntax in programming?
A set of rules for writing programs
The speed of program execution
The method of debugging code
The type of programming language used
What is the function of a language translator?
To create new programming languages
To check syntax and translate programs
To design user interfaces
To manage computer hardware
What does an assembler do?
Translates high-level languages to machine language
Generates error messages for programmers
Converts assembly language to machine language
Translates one line of code at a time
Which of the following describes a compiler?
Requires no memory to operate
Only checks for syntax errors
Translates the entire program at once
Translates one line of code at a time
What is a key feature of an interpreter?
Only works with low-level languages
Translates one line at a time and executes it
Generates intermediate object code
Translates the whole program at once
Which programming languages typically use interpreters?
C and C++
Python and Ruby
Java and C#
COBOL and Fortran
What is the Programming Life Cycle (PLC)?
The design of user interfaces
The steps involved in programming
The process of debugging software
The method of translating code
What happens when an interpreter encounters an error?
It ignores the error
It continues executing the program
It reports the error after the program ends
It stops execution and reports the error immediately
Which of the following is NOT a type of language translator?
Assembler
Compiler
Debugger
Interpreter
What is the main difference between an interpreter and a compiler?
Interpreters execute code line by line
Compilers provide immediate feedback on errors
Interpreters translate the whole program at once
Compilers are used for low-level languages
What is the purpose of syntax-error messages?
To translate code into machine language
To inform the programmer of syntax errors
To improve program performance
To execute the program
What is a key characteristic of application software?
It can run without system software
It is designed for specific tasks
It translates programming languages
It is used for hardware management
What is the role of a programmer in maintaining software?
To create user manuals
To design hardware components
To ensure systems run smoothly
To write new programming languages
Which of the following best describes the relationship between application software and system software?
Application software can run independently
System software is not necessary for application software
Application software depends on system software to execute
They are the same type of software
What is the significance of the programming process?
It is only necessary for debugging
It is essential for transforming ideas into code
It allows for the creation of hardware
It helps in designing user interfaces
