Exam 7: Methods: a Deeper Look

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

A static variable represents class-wide information.

(True/False)
4.9/5
(31)

A program contains a copy of a static variable for each object that's instantiated.

(True/False)
4.8/5
(33)

The keyword is used to pass value-type variables to methods by-refer Ence.

(Multiple Choice)
4.8/5
(29)

Stacks are _____________ data structures.

(Multiple Choice)
4.9/5
(37)

A recursive method knows directly how to solve only the base case.

(True/False)
4.7/5
(30)

Let x be a double.How can you typecast a double into a float

(Multiple Choice)
4.8/5
(40)

To access the class's non-static members,a static method must use a reference to an object of the class.

(True/False)
4.8/5
(36)

If a change is made to an underlying value in an enumeration,you must change the pro gram in every place that the old value was used.

(True/False)
4.8/5
(29)

What does the Framework Class Library hold

(Multiple Choice)
4.8/5
(33)

Random-number generator scaling is the process of:

(Multiple Choice)
4.8/5
(31)

Methods can return at most one value.

(True/False)
4.8/5
(34)

Identifiers declared within a class have

(Multiple Choice)
4.8/5
(34)

Converting a simple type to another simple type may change the value.

(True/False)
4.8/5
(32)

Repeating high-quality,high-performance code in a program helps ensure higher qual ity programs.

(True/False)
4.8/5
(40)

Values returned by the Random class method Next are pseudo-random numbers.

(True/False)
4.8/5
(31)

Programmers can create reference types.

(True/False)
4.9/5
(35)

When an object is concatenated with a string:

(Multiple Choice)
4.8/5
(31)

A(n)is a value type that contains a set of constant values.

(Multiple Choice)
4.8/5
(34)

The technique of dividing large programs into simple problems is known as divide and conquer.

(True/False)
4.9/5
(30)

A particular seed value passed to the Random class's constructor causes the Random object to always produce the same series of random numbers.

(True/False)
4.9/5
(38)
Showing 61 - 80 of 95
close modal

Filters

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