Exam 4: Variables and Arithmetic Operations

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

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

Free
(Short Answer)
4.8/5
(42)
Correct Answer:
Verified

class

A Double variable can be used in arithmetic operations.

Free
(True/False)
4.9/5
(32)
Correct Answer:
Verified

True

Case 4-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?

Free
(Multiple Choice)
4.7/5
(37)
Correct Answer:
Verified

A

A(n)green squiggly underline beneath a variable name in a declaration statement indicates that the variable is unused in the program._________________________

(True/False)
5.0/5
(37)

Char variables can be used in arithmetic operations.

(True/False)
5.0/5
(32)

The ____ operator is used for exponentiation.

(Multiple Choice)
4.8/5
(27)

When defining a variable,the keyword ____ appears at the beginning of the statement.

(Multiple Choice)
4.7/5
(41)

What are the rules for naming variables in Visual Basic? Providing examples of the good and the bad,discuss what impact good programming practice has on the naming of variables.

(Essay)
4.7/5
(33)

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

(Multiple Choice)
4.8/5
(33)

A(n)____________________ specifier is used to identify the number of positions to the right of the decimal point that should be returned when displaying numeric data.

(Short Answer)
4.8/5
(33)

The ____ statement prevents automatic conversion of data types.

(Multiple Choice)
4.9/5
(36)

The ____ operator is used to concatenate two strings.

(Multiple Choice)
4.9/5
(31)

The ^ operator is the ____________________ arithmetic operator.

(Short Answer)
4.8/5
(43)

____ is an arithmetic operation.

(Multiple Choice)
4.8/5
(28)

The prefix ____ should be used for a Double variable.

(Multiple Choice)
4.8/5
(33)

A variable that will be used to hold only True or False values should be declared as a(n)____ data type.

(Multiple Choice)
4.9/5
(43)

A ____ Exception occurs when the user enters data that a statement cannot properly handle.

(Multiple Choice)
4.7/5
(39)

MATCHING Identify the letter of the choice that best matches the phrase or definition. -When you include a value in an assignment statement,the value is called this

(Multiple Choice)
4.9/5
(25)

A numeric data type must be used in arithmetic operations.

(True/False)
4.8/5
(43)

The Double data type can store a ____.

(Multiple Choice)
4.8/5
(33)
Showing 1 - 20 of 112
close modal

Filters

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