Comprog Question (1)
Comprog Question (1)
I. Multiple Choice: Choose the correct answer. Write the CAPITAL LETTER on your questionnaire space
provided before the number. (2points each)
1. In programming, which control structure is used when you want to execute one statement if a
condition is TRUE and another statement if the condition is FALSE?
A. if Statement B. else Statement C. if , else Statement D. None
2. In programming, what control structure specifies that a statement or block of code will be
executed only if a certain Boolean statement is TRUE?
A. if Statement B. else Statement C. if , else Statement D. None
3. Which of the ff. is used to label variables, methods, classes, and other elements in
programming, and is case-sensitive, allowing for the inclusion of letters, digits, underscore, and
dollar sign ($)?
A. Identity B. Identifiers C. Expression D. Operator
4. What is a shorthand method for describing computer programs that uses more general wording
instead of the specific syntax of a computer language, making it easier for non-programmers to
understand the general workings of the program?
A. Flow Chart B. Pseudocode C. SDLC D. Algorithm
5. Which of the following describes software that helps a computer carry out its basic operating
functions and controls hardware or maintains system efficiency?
A. Application Software B. Firmware C. System Software D. Utility Software
6. Which of the following describes computer programs used to accomplish specific or specialized
tasks for users, such as Microsoft Office?
A. Application Software B. Firmware C. System Software D. Utility Software
7. Which of the following describes the craft of implementing abstract algorithms using a specific
programming language to produce a concrete computer program?
A. Algorithm B. Debugging C. Programming D. System Design
8. Which of the following describes a computer program that takes one or more object files
generated by a compiler and combines them into a single executable program?
A. Assembler B. Linker C. Source Code D. Object Code
9. Which of the following describes code written by the programmer that is transformed into a
format ready to be executed by the computer?
A. Assembler B. Linker C. Source Code D. Object Code
10. Which of the following describes a low-level programming language that uses mnemonic codes,
is easier to use than machine language, and requires an assembler to convert the program into
machine language?
A. Assembly Language B. High-Level Language
C. Object-Oriented Language D. Script Language
11. Which of the following describes the representation of a program using 1s and 0s, which is the
only language understood by the computer?
A. Assembly Language B. Intermediate Code C. Machine Language D. Source Code
12. Which of the following refers to a mistake in code that violates the programming language's
rules and prevents it from executing correctly?
A. Compilation Error B. Logic Error C. Runtime Error D. Syntax Error
COLAND SYSTEMS TECHNOLOGY, INC.
Peñas Building, Sinsuat Avenue
Cotabato City
13. Which of the following describes a type of error in a program where the instructions do not
achieve the intended goal, even though the program may run without crashing?
A. Compilation Error B. Logic Error C. Runtime Error D. Syntax Error
14. Which of the following describes an error that occurs when a program crashes or produces
incorrect output during execution?
A. Compilation Error B. Logic Error C. Runtime Error D. Syntax Error
15. In programming, what is the primary use of a semicolon?
A. To indicate the end of a statement B. To insert a comment
C. To separate multiple statements D. To start a new block of code
16. In Java, what is the primary purpose of comments?
A. To manage memory allocation B. To execute alternative code
C. To increase the execution speed D. To debug the code
17. What symbol is used to indicate a single-line comment in Java, where any text following it until
the end of the line is ignored by the compiler?
A. /* and */ B./# and #/ C. // D. <//
18. What symbols are used to create a multi-line comment in Java, where any text between them is
ignored by the compiler?
A. /* and */ B./# and #/ C. // D. <//
19. What term describes a data type used to store text, with values surrounded by double quotes?
A. Boolean B. Character C. String D. int
20. What term refers to the rules that define the structure of symbols, punctuation, and words in a
programming language?
A. Grammar B. Logic C. Semantic D. Syntax
II. Enumeration List down or enumerate what are being asked on each of the following item
below (2points each).