Exam 5: Control Statements: Part 1

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

int division may yield a non-int result.

Free
(True/False)
4.8/5
(33)
Correct Answer:
Verified

False

When using top-down,stepwise refinement,only the last refinement is a com plete specification of the algorithm.

Free
(True/False)
4.8/5
(34)
Correct Answer:
Verified

False

If an increment or decrement operator is placed before a variable,it is referred to as the prefix increment or prefix decrement operator,respectively.If an increment or decrement opera tor is placed after a variable,it is referred to as the postfix increment or postfix decrement opera tor,respectively.

Free
(True/False)
4.7/5
(50)
Correct Answer:
Verified

True

A can be used in a repetition structure to control the number of times a set of statements will execute.

(Multiple Choice)
4.9/5
(39)

Which of the following is not necessarily an error (either a syntax error or a logic error)

(Multiple Choice)
4.8/5
(46)

Pseudocode helps you conceptualize a program during the design process.

(True/False)
4.8/5
(38)

What is the resulting value of c at the end of the following code segment Int c = 8; C++; ++c; C %= 5;

(Multiple Choice)
4.7/5
(32)

The conditional operator is of the highest precedence.

(True/False)
4.8/5
(36)

C# rounds fractional values when they're to be stored in an integer variable.

(True/False)
5.0/5
(40)

The sequence structure is built into C#.Unless directed otherwise,the computer ex ecutes C# statements one after the other in the order in which they are written.

(True/False)
4.9/5
(43)

Variables that store totals should generally be initialized to zero before being used in a program.

(True/False)
4.9/5
(37)

Which of the following is not included in an activity diagram for a control statement

(Multiple Choice)
4.9/5
(32)

The operator increases the value of the variable by 1 after the original value is used in the expression in which the variable appears.

(Multiple Choice)
4.9/5
(37)

A variable used only within a repetition statement should be declared within the statement.

(True/False)
4.9/5
(30)

Control structures cannot be placed inside other control structures.

(True/False)
4.7/5
(39)

Syntax errors cause a program to fail and terminate prematurely.

(True/False)
4.8/5
(33)

Programs can be written,compiled and executed with pseudocode.

(True/False)
4.7/5
(32)

Which primitive type can hold the largest value

(Multiple Choice)
4.8/5
(37)

The C# compiler always associates an else with the previous if,unless braces indicate otherwise.

(True/False)
4.9/5
(38)

The order of actions of an algorithm is irrelevant.

(True/False)
4.8/5
(25)
Showing 1 - 20 of 94
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)