Exam 4: Variables and Arithmetic Operations

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

Critical Thinking Questions Case 2 The arithmetic operators in your program are not behaving the way you think they should be, so you decide to brush up on your operators and the hierarchy of operations. What is the correct order among the following operations?

(Multiple Choice)
5.0/5
(47)
Identify the letter of the choice that best matches the phrase or definition.
Premises:
Function in which all values are rounded based on the digit after the last digit to be displayed
Responses:
constant
program
ToString
Correct Answer:
Verified
Premises:
Responses:
Function in which all values are rounded based on the digit after the last digit to be displayed
constant
(Matching)
4.8/5
(42)

A numeric data type must be used in arithmetic operations.

(True/False)
4.8/5
(35)
Identify the letter of the choice that best matches the phrase or definition.
Premises:
A procedure that returns a value
Responses:
method
class
constant
Correct Answer:
Verified
Premises:
Responses:
A procedure that returns a value
method
(Matching)
4.8/5
(31)

In an assignment statement, the value to the right of the equal sign will be ____________________ to the variable on the left.

(Short Answer)
4.9/5
(35)

Integer variables can be used to store fractional values.

(True/False)
4.9/5
(45)

  Figure 4-3 Discuss five rules that apply to variables as defined in the accompanying figure. Figure 4-3 Discuss five rules that apply to variables as defined in the accompanying figure.

(Essay)
4.7/5
(36)

A prefix of ____ is used to denote a variable defined as a Decimal data type.

(Multiple Choice)
4.8/5
(34)

The * operator is the ____________________ arithmetic operator.

(Short Answer)
5.0/5
(29)

The ____ of a variable indicates how long the variable remains active.

(Multiple Choice)
4.9/5
(35)
Identify the letter of the choice that best matches the phrase or definition.
Premises:
The general rule of this is that a variable can be referenced only from within the region in which it was defined
Responses:
function
program
method
Correct Answer:
Verified
Premises:
Responses:
The general rule of this is that a variable can be referenced only from within the region in which it was defined
function
(Matching)
4.9/5
(43)

A(n) ____________________ text box allows the user to enter multiple lines in a text box.

(Short Answer)
4.9/5
(33)

Used with the ToString function, the ____ format specifier will display the value 8976.43561 as 8976.43561.

(Multiple Choice)
4.9/5
(45)

A prefix of ____ is used for variables defined as a String data type.

(Multiple Choice)
4.8/5
(39)

A(n) ____________________ is a named grouping of program code.

(Short Answer)
4.7/5
(42)

A prefix of ____ is used to denote a variable defined as an Integer data type

(Multiple Choice)
4.8/5
(34)

The ____ of a variable specifies where a variable can be referenced within a program.

(Multiple Choice)
4.8/5
(38)

A ____ beneath a variable name in a declaration statement indicates that the variable has not been used in the program.

(Multiple Choice)
4.9/5
(30)

The ____ indicates that a statement is an assignment statement.

(Multiple Choice)
4.7/5
(37)

A(n) ____________________ identifies a value required by a procedure that must be passed in when the procedure is called.

(Short Answer)
4.8/5
(35)
Showing 21 - 40 of 107
close modal

Filters

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