Fundamentals of Programming Midterm Reviewer

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Alfredhook3
A
Alfredhook3
Community Contributor
Quizzes Created: 5317 | Total Attempts: 3,143,123
| Attempts: 13 | Questions: 30 | Updated: Sep 4, 2026
Please wait...
Question 1 / 31
🏆 Rank #--
0 %
0/100
Score 0/100

1. Which of the following is a valid variable initialization?

Explanation

In programming, variable initialization requires that the variable name follows specific rules. The name must start with a letter or an underscore, not a digit, and should not include quotes for string values. Among the options, "string city = 'Manila';" is valid because it correctly initializes a string variable with a proper name and assigns it a string value. The other options violate naming conventions or type assignments, making them invalid.

Submit
Please wait...
About This Quiz
Fundamentals Of Programming Midterm Reviewer - Quiz

This assessment covers essential concepts in programming, including computer systems, hardware, software, and variable management. It evaluates understanding of algorithms, data types, and programming languages, making it a valuable resource for learners aiming to solidify their foundational programming knowledge.

2.

What first name or nickname would you like us to use?

You may optionally provide this to label your report, leaderboard, or certificate.

2. Which of the following statements about syntax and semantics are correct?

Submit

3. Which of the following are examples of output devices?

Submit

4. Match the programming language type to its description.

Submit

5. Which of the following correctly describes the OR (||) logical operator?

Submit

6. The NOT (!) operator inverts the boolean value of its operand, making a true expression false and a false expression true.

Submit

7. Which logical operator evaluates to true only if ALL its operands are true?

Submit

8. The ____ statement executes a block of code if the condition is satisfied and a different block if not satisfied.

Submit

9. Which relational operator checks if the value of the left operand is NOT equal to the right operand?

Submit

10. Pseudocode is a text-based way of designing a computer program that acts as a blueprint before writing actual executable code.

Submit

11. Match the flowchart symbol to its function.

Submit

12. Which data type stores only true or false values?

Explanation

A Boolean data type is specifically designed to hold only two possible values: true or false. This binary nature makes it ideal for representing logical conditions and decision-making processes in programming. Unlike integers, strings, or doubles, which can represent a wide range of values, Booleans provide a straightforward way to manage binary states, such as on/off or yes/no, making them essential for control flow in algorithms and conditional statements.

Submit

13. A ____ is a named storage location in the computer's memory used to hold data that can be modified during program execution.

Explanation

A variable is a fundamental concept in programming that serves as a symbolic name for a storage location in memory. It allows programmers to store, modify, and retrieve data while a program is running. By using variables, developers can create dynamic applications that can handle changing information, such as user inputs or calculations. Each variable has a specific data type, which determines the kind of data it can hold, and it can be easily manipulated through various operations throughout the program's execution.

Submit

14. Which of the following is NOT a valid convention in naming variables?

Explanation

Variable names in programming must adhere to specific conventions to avoid conflicts and ensure clarity. One key rule is that variable names cannot be keywords, as these are reserved for specific functions in the language. Using a keyword like 'int' or 'print' as a variable name would lead to ambiguity and errors in the code, as the programming language would not be able to distinguish between the variable and its intended function. Therefore, naming a variable with a keyword is not valid.

Submit

15. A variable name must not start with a number.

Explanation

Variable names in programming follow specific naming conventions, which typically require that they begin with a letter (either uppercase or lowercase) or an underscore. Starting a variable name with a number can lead to confusion and errors in code interpretation, as it does not conform to the syntax rules of most programming languages. This rule helps maintain clarity and ensures that the code is easily readable and maintainable, preventing potential conflicts with numeric literals.

Submit

16. What is a computer system?

Explanation

A computer system comprises various components that work together to handle data efficiently. This includes hardware like the CPU, memory, and storage, as well as software that enables tasks to be performed. The system's ability to input, process, store, and output data highlights its multifunctional nature, distinguishing it from single-purpose devices or mere software collections. By integrating these resources, a computer system can perform complex operations and support various applications, making it a versatile tool in both personal and professional contexts.

Submit

17. Which data type stores whole numbers, both positive and negative?

Explanation

Integers are a data type specifically designed to store whole numbers, which can be either positive or negative. Unlike floats, which accommodate decimal values, integers represent whole values without any fractional component. This makes them ideal for counting, indexing, and performing arithmetic operations where fractions are not required. In programming and data structures, integers are fundamental for tasks that involve discrete values, such as loop counters or array indices.

Submit

18. In an algorithm, the elements needed for the program to be accomplished are called ____.

Explanation

In an algorithm, "input" refers to the data or parameters that are provided to the program for processing. These elements are essential as they serve as the starting point for the algorithm to perform its tasks, enabling it to produce the desired output. Without the appropriate input, the algorithm would lack the necessary information to execute its functions effectively. Inputs can vary widely, including numbers, text, or other data types, depending on the specific requirements of the algorithm being implemented.

Submit

19. An algorithm refers to ____.

Explanation

An algorithm is fundamentally a sequence of steps designed to perform a specific task or solve a problem. It serves as a blueprint for programming, outlining the logical procedures to follow. Unlike a programming language, which is a tool for implementation, an algorithm focuses on the methodology and structure of problem-solving, making it essential in computer science and mathematics. This clarity in instructions is what distinguishes algorithms from other concepts like variables or graphical representations.

Submit

20. Object-Oriented Programming (OOP) treats a program as a group of objects composed of data and program elements known as ____ and ____.

Explanation

In Object-Oriented Programming (OOP), objects are the fundamental building blocks, encapsulating both data and behavior. The data is referred to as attributes, which define the properties or characteristics of an object, while methods are the functions or procedures that operate on these attributes. This structure allows for better organization, modularity, and reusability of code, as objects can interact with one another through their methods while maintaining their own internal state through attributes.

Submit

21. Which of the following best describes a high-level programming language?

Explanation

High-level programming languages are designed to be more user-friendly and abstract, allowing programmers to write code that is closer to human language than machine code. This abstraction makes it easier to understand and write complex programs without needing to manage hardware specifics. They typically include features like rich syntax and powerful libraries, which enable developers to focus on problem-solving rather than low-level details, making programming more accessible to a broader audience.

Submit

22. Which type of programming language uses mnemonics as an intermediary between humans and computers?

Explanation

Assembly language uses mnemonics, which are symbolic representations of machine code instructions, making it easier for humans to read and write programs. Unlike machine language, which consists of binary code that is difficult for humans to interpret, assembly language provides a more understandable format while still being closely tied to the hardware. This intermediary level allows programmers to write instructions in a way that is more intuitive than raw binary, facilitating the development and debugging of software that directly interacts with computer architecture.

Submit

23. A programming language that uses binary code to write instructions is called ____.

Explanation

Machine language is the lowest-level programming language, consisting of binary code that the computer's hardware can directly understand and execute. It is composed of sequences of 0s and 1s that represent instructions for the CPU. Unlike higher-level programming languages, which are more human-readable and require translation into machine code, machine language allows for direct control of the computer's operations, making it essential for system-level programming and performance optimization.

Submit

24. What is programming?

Explanation

Programming involves a series of systematic steps that transform ideas into functional software. It begins with designing algorithms and writing source code in a programming language. This code is then tested to identify and fix errors (debugging), ensuring it operates as intended. Additionally, maintaining code is crucial for updates and improvements over time. In contrast, the other options relate to hardware assembly, networking, or operating systems, which are distinct from the core activities involved in programming itself.

Submit

25. Which of the following is NOT an example of peopleware?

Explanation

Peopleware refers to the human aspects of technology, focusing on the skills, roles, and interactions of people in a work environment. In this context, a Software Developer, Database Administrator, and Systems Analyst are all roles that involve human expertise and collaboration. In contrast, a Solid State Drive (SSD) is a hardware component used for data storage and does not involve human interaction or roles, making it the only option that does not fit the definition of peopleware.

Submit

26. Peopleware refers to ____.

Explanation

Peopleware emphasizes the importance of human factors in the technology environment, focusing on the individuals who interact with computer systems. It highlights that successful development, operation, and maintenance of these systems rely not just on the technology itself but also on the skills, collaboration, and well-being of the people involved. By recognizing humans as end users, Peopleware advocates for a holistic approach that values teamwork, communication, and the organizational culture necessary for effective software development and system management.

Submit

27. Which of the following is an example of system software?

Explanation

System software serves as a bridge between hardware and application software, managing system resources and providing essential services. An operating system (OS) is a prime example, as it controls the computer's hardware, manages files, and facilitates user interaction with applications. In contrast, Microsoft Word, Adobe Photoshop, and spreadsheet software are application software designed for specific tasks, such as word processing or data management, rather than managing system resources. Thus, the operating system is categorized as system software.

Submit

28. Which category of hardware translates human actions into digital signals the processor can understand?

Explanation

Input devices are hardware components that allow users to interact with a computer by translating human actions, such as typing on a keyboard or moving a mouse, into digital signals that the processor can interpret. These devices serve as the primary means for users to provide data and commands to the computer, enabling communication between the user and the machine. Examples include keyboards, mice, scanners, and microphones, all of which facilitate user input and enhance the overall functionality of the computer system.

Submit

29. Which of the following is an example of a processing device?

Explanation

A processing device is responsible for executing instructions and processing data within a computer system. The CPU (Central Processing Unit) serves as the primary processing unit, performing calculations, executing commands, and managing data flow between other components. Unlike the monitor, keyboard, and hard disk drive, which are input or output devices or storage, the CPU directly handles the processing tasks that enable the computer to function effectively.

Submit

30. Which of the following best describes hardware?

Explanation

Hardware refers to the physical elements of a computer system, encompassing all the tangible components that can be seen and touched, such as the motherboard, CPU, RAM, hard drives, and peripherals. Unlike software, which consists of instructions and programs that operate on the hardware, hardware provides the essential infrastructure that enables a computer to function. This distinction highlights the importance of hardware as the foundational layer upon which software runs, making it a critical aspect of any computing system.

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (30)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
Which of the following is a valid variable initialization?
Which of the following statements about syntax and semantics are...
Which of the following are examples of output devices?
Match the programming language type to its description.
Which of the following correctly describes the OR (||) logical...
The NOT (!) operator inverts the boolean value of its operand, making...
Which logical operator evaluates to true only if ALL its operands are...
The ____ statement executes a block of code if the condition is...
Which relational operator checks if the value of the left operand is...
Pseudocode is a text-based way of designing a computer program that...
Match the flowchart symbol to its function.
Which data type stores only true or false values?
A ____ is a named storage location in the computer's memory used to...
Which of the following is NOT a valid convention in naming variables?
A variable name must not start with a number.
What is a computer system?
Which data type stores whole numbers, both positive and negative?
In an algorithm, the elements needed for the program to be...
An algorithm refers to ____.
Object-Oriented Programming (OOP) treats a program as a group of...
Which of the following best describes a high-level programming...
Which type of programming language uses mnemonics as an intermediary...
A programming language that uses binary code to write instructions is...
What is programming?
Which of the following is NOT an example of peopleware?
Peopleware refers to ____.
Which of the following is an example of system software?
Which category of hardware translates human actions into digital...
Which of the following is an example of a processing device?
Which of the following best describes hardware?
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!