Ovido
Language
  • English
  • Spanish
  • French
  • Portuguese
  • German
  • Italian
  • Dutch
  • Swedish
Text
  • Uppercase

User

  • Log in
  • Create account
  • Upgrade to Premium
Ovido
  • Home
  • Log in
  • Create account

C# Chapter 3 Part 2

public static int Abs(int)

Which of the following would be a valid call to the above method?

answer = Math.Abs(-23)

A method used to convert from one base type to another is ____.

Convert.ToDouble( )

Which of the following is NOT a parameter type?

in

An advantage of using named parameters is: ____.

you can send in values through using the names of the parameters instead of having to worry about getting the exact order

Which of the following methods are not overloaded?

ReadLine( )

All programs consist of at least one ____________.

method

One option to holding the screen at the end of a program is to invoke Console.Read( ). Another option is to call ____________. It obtains the next character or function key from the user.

ReadKey( )

Every method that has a return type other than ________ must have a return statement in the body.

void

The return keyword may not be included with a non-value returning method (void method).
True or False

False

The ____ parameter type cannot be used unless the original argument is initialized before it is sent to the method.

ref

Which of the following is a user-defined method?

Main( )

In order to call or invoke a nonvalue-returning method, enter the ____.

method's identifier followed by list of arguments

method's identifier followed by list of arguments

returnType

Calls to ____________ methods must be placed at a location in your code where the value could be accepted when the method is finished.

value-returning

When you assign a default value to a parameter, it then becomes a(n) ____________ parameter.

optional

The term ____________ is often used to indicate where an identifier has meaning and can be used

scope

In order to indicate a value is constant and cannot be changed, the keyword constant is added.
True or False

False

A standard convention used by C# programmers is to use Pascal case style for class, data member identifiers, and method identifiers.
True or False

False

public static void Main( )

The return type for the method above is ____.

void

WriteLine("Final Grade = {0:N2}", CalculateGrade(90, 75, 83));

In the statement above, CalculateGrade(90, 75, 83) is ____.

a method call

Method names should be defined with meaningful names using ____.

verb phrases

____________ is used to indicate that no value is being returned from a method.

void

The definition for a method includes just the heading. The signature includes the heading and the body of the method.
True or False

False

WriteLine("Final Grade = {0:N2}", CalculateGrade(90, 75, 83));

The {0:N2} above indicates the ____.

first argument should display two digits to the right of the decimal

When naming a(n) ____________, use an action verb phrase.

method

The Console class is defined in the System namespace.
True or False

True

In order to hold the screen when the program runs, programmers often add ReadKey( ) as a last statement.
True or False

True

The Math class has a number of static methods located in the ____ namespace.

System

Quiz
C# Chapter 3 Part 1
C# Chapter 2 Part 2
C# Chapter 2 Part 1
C# Chapter 1 part 2
C# Chapter 1 part 1
Kapitel 4
KOTOBA PM LEMBAR 6
Kaptiel 3
Cognitive psychology attention
76-100
قیافه شناسی
marketing
Paris Basin
انتقال ها
Market Studies
Many Kingdoms
SCI-401
Pacial Gine
morfologia das articulações
articulacoes
articulações anatomia humana
Spanska v. 40
Forensic Toxicology
Math, Unit 2 Quiz
Blodet
kap 1
BLED CHAP 12
TLE (tech) (1st exam)
BLED CHAP 11
integumentary
CHAPTER 3: TYPICAL SIGNS AND SYMPTOMS OF PSYCHOPATHOLOGY (PART 2)
ekologi
Analyse qualitative des données
Spanska - djur 1
Spanska - djur
Sociologie des mobillité
tyska glosor
Handel och logistik - kopia
Modals
KOTOBA PM LEMBAR 5
Drinkar 2
Merkantilism
Keynesianismen
Kanji 一
Handel och logistik
aparato reproductor femenino
51-75
Math GRE
BAB 25
la materia y sus interacciones