Programming Logic and Design Exam - Questions and Answers
Programming Logic and Design Exam - Questions and Answers Which operator is best to determine whether x contains a value in the range of 10 through 57? A) AND B) NOT C) OR D) == E) None of these Which structure is a logical design that controls the order in which a set of statements executes? A) Control B) Sequence C) Module D) Terminal E) None of these True/False: The short-circuit evaluation is performed with expressions containing any logical operators. A) True B) False What two logical operators perform short-circuit evaluation? A) NOT and OR B) AND and OR C) AND and NOT D) All of these E) None of these True/False: In an expression with an OR operator, it does not matter which sub expression is true for the compound expression to be true. A) True B) False Which of the following operators reverses the logic of its operand? A) NOT B) AND C) OR D) All of these E) None of these The ________ operator is a unary operator, as it works with only one operand. A) AND B) NOT C) OR D) All of these E) None of these True/False: Decision structures are also known as selection structures. A) True B) False What type of operators are the following? = = == != A) Boolean B) Relational C) Logical D) Mathematical E) None of these True/False: The first line of the case structure starts with the word CASE followed by the test expression. A) True B) False True/False: The While loop will never execute if its condition is true to start with. A) True B) False Which loop statement does not contain an increment statement but automatically increments the counter at the end of each iteration? A) Do-While B) Do-Until C) For D) While E) None of these In a count-controlled loop, the counter performs
Document information
- Uploaded on
- July 11, 2023
- Number of pages
- 13
- Written in
- 2022/2023
- Type
- Exam (elaborations)
- Contains
- Questions & answers