Chapter8-PL

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

Which of the following is not a primary design issue for two-way selectors? a. Is the else clause optional, or is it required? b. How are the then and else clauses specified? c. What is the form and type of the expression that controls the selection? d. How should the meaning of nested selectors be specified?

Is the else clause optional, or is it required?

Which of the following languages require the control expression of its counter-controlled looping statement to be of boolean type? ¨ Java ¨ C ¨ C# ¨ C++

Java and C#

Which of the following languages does not use a static semantics rule to specify the if construct to which an else clause belongs when the clause follows a nested if? a. Java b. C++ c. Perl d. Ada

Ada

Which of the following languages does not use braces to form compound statements? a. Java b. PHP c. C++ d. Ada

Ada

Which of the following languages has a switch statement that has different static semantic rules that those of the others? a. C++ b. C# c. Java d. C

C#

Which of the following languages has a goto statement? ¨ Java ¨ C ¨ C# ¨ Ada

C#, C, Ada

Which of the following languages have a predefined loop statement that is controlled by a data structure? ¨ Perl ¨ C# ¨ C++ ¨ Java

Perl, C++, C#, Java

Which of the following is not a primary design issue for counter-controlled loops? a. What value does the loop variable have at loop termination? b. What are the type and scope of the loop variable? c. What is the maximum depth to which counter-controlled loops can be nested? d. Should the loop parameters be evaluated only once, or once for every iteration?

What is the maximum depth to which counter-controlled loops can be nested?

Which of the following is not a design issue for multiple selection statements? a. Is execution flow through the structure restricted to include just a single selectable segment? b. What is the maximum number of selections that can be included in the construct? c. How should unrepresented selector expression values be handled, if at all? d. What is the form and type of the expression that controls the selection?

What is the maximum number of selections that can be included in the construct?


Set pelajaran terkait

Employee Engagement and Retention

View Set

Series 65 - Practice Exam (No Answer Selected)

View Set

Purposive Comm: Midterms (Quizzes)

View Set

ECCO: Hemodynamic Monitoring Critically Ill Patients: Part 1

View Set