Exam 7: Methods: a Deeper Look

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

Which statement is false

(Multiple Choice)
4.8/5
(26)

Programmers write to define specific tasks that may be used at many points in a program.

(Multiple Choice)
4.8/5
(38)

The order of a method's parameters is insignificant.

(True/False)
4.7/5
(48)

strings can be concatenated only with the method Concat.

(True/False)
4.9/5
(36)

A method's changes to a variable that is passed-by-value do not affect the value of the original variable in the calling method.

(True/False)
4.8/5
(32)

A local variable or reference declared in a block can be used in blocks in which that block is nested.

(True/False)
4.8/5
(35)

A method is invoked by a.

(Multiple Choice)
4.8/5
(40)

Recursion takes a complex problem and splits it up among many methods.

(True/False)
4.9/5
(44)

Main is declared static so the execution environment can invoke Main without creating an instance of the class.

(True/False)
5.0/5
(31)

Which of the following can be arguments to methods

(Multiple Choice)
4.9/5
(41)

Methods of a class can access all members defined in that class.

(True/False)
4.9/5
(33)

A method cannot change the actual reference of an identifier that has been passed-by-reference.

(True/False)
4.9/5
(38)

Which of these statements best defines scope

(Multiple Choice)
4.8/5
(39)

Which keyword can you use to immediately give control back to a method's caller

(Multiple Choice)
4.8/5
(21)

Which of the following describes a static variable

(Multiple Choice)
4.8/5
(34)

Optional parameters enable you to specify default argument values for specific parameters.

(True/False)
4.8/5
(28)

A is provided to a random number generator to ensure the same sequence of numbers is not generated during each execution.

(Multiple Choice)
4.8/5
(32)

A static method can ________.

(Multiple Choice)
4.9/5
(34)

By including using System;at the top of a source program,you can use the unqualified class name,Console,instead of the fully qualified class name,System.Console.

(True/False)
4.9/5
(39)

Which of the following will violate the rules of overloading methods

(Multiple Choice)
4.8/5
(41)
Showing 41 - 60 of 95
close modal

Filters

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