Deck 16: Craps Game Application

Full screen (f)
exit full mode
Question
Which of the following produces integers in the range from 10-30, inclusive?

A) 10 + objRandom.Next( 21 );
B) 10 + objRandom.Next( 30 );
C) objRandom.Next( 10, 30 );
D) objRandom.Next( 10, 31 );
E) Both a and d.
Use Space or
up arrow
down arrow
to flip the card.
Question
Numbers generated when the Next method is called on a Random object are _____.

A) random numbers
B) pseudorandom numbers
C) int values
D) double values
E) Both b and c.
Question
The Image.FromFile method returns an object of type _____.

A) File
B) Directory
C) Image
D) Picture
E) None of the above.
Question
To access a member of an enumeration, follow the enumeration name with______ the member name.

A) a dot, followed by
B) parentheses surrounding
C) a space, followed by
D) a comma, followed by
E) an underscore character, followed by
Question
Keyword _____allows you to access members from a namespace.

A) import
B) using
C) namespace
D) access
E) None of the above.
Question
Enumerations can contain_____ values.

A) only unique
B) an indefinite number of
C) up to 10
D) up to 100
E) Both a. and b.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/6
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 16: Craps Game Application
1
Which of the following produces integers in the range from 10-30, inclusive?

A) 10 + objRandom.Next( 21 );
B) 10 + objRandom.Next( 30 );
C) objRandom.Next( 10, 30 );
D) objRandom.Next( 10, 31 );
E) Both a and d.
E
2
Numbers generated when the Next method is called on a Random object are _____.

A) random numbers
B) pseudorandom numbers
C) int values
D) double values
E) Both b and c.
Both b and c.
3
The Image.FromFile method returns an object of type _____.

A) File
B) Directory
C) Image
D) Picture
E) None of the above.
Image
4
To access a member of an enumeration, follow the enumeration name with______ the member name.

A) a dot, followed by
B) parentheses surrounding
C) a space, followed by
D) a comma, followed by
E) an underscore character, followed by
Unlock Deck
Unlock for access to all 6 flashcards in this deck.
Unlock Deck
k this deck
5
Keyword _____allows you to access members from a namespace.

A) import
B) using
C) namespace
D) access
E) None of the above.
Unlock Deck
Unlock for access to all 6 flashcards in this deck.
Unlock Deck
k this deck
6
Enumerations can contain_____ values.

A) only unique
B) an indefinite number of
C) up to 10
D) up to 100
E) Both a. and b.
Unlock Deck
Unlock for access to all 6 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 6 flashcards in this deck.