Self Review Exercises 6 Flashcards
SRE 6
Programmers normally use ______
a) programmer-defined methods
b) pre-existing methods
c) both programmer-defined and pre-existing methods
d) neither programmer-defined nor pre-existing methods
c) both programmer-defined and pre-existing methods
SRE 6
The ______ statement in a Function sends a value back to the calling method.
a) Return
b) Back
c) End
d) None of the above
a) Return
SRE 6
Arguments passed to a method can be _______
a) constants
b) expressions
c) variables
d) all of the above
d) all of the above
SRE 6
The ______ is a comma separated list of declarations in a method header.
a) argument list
b) parameter list
c) value list
d) variable list
b) parameter list
SRE 6
During debugging, the ______ command executes the remaining statements in the current method and returns program control to the place where the method was called
a) Step Into
b) Step Out
c) Step Over
d) Steps
b) Step Out
SRE 6
The debugger command ______ behaves like the Step Over command when the next statement to execute does not contain a method call.
a) Step Into
b) Step out
c) Step over
d) Steps
a) Step Into
SRE 6
Instant variables have _____ scope
a) block
b) method
c) class
d) None of the above
c) class
SRE 6
Variables with either method scope or block scope are called ______.
a) instance variables
b) local variables
c) class variables
d) hidden variables
b) local variables
SRE 6
When Option Strict is set to On, you must explicitly perform _______.
a) narrowing conversions
b) widening conversions
c) all type conversions
d) no conversions
a) narrowing conversions
SRE 6
The methods in class _____ are used to perform explicit conversions.
a) Strict
b) Change
c) Convert
d) Conversion
c) Convert
SRE 6
The Statement _____ returns a number in the range from 8 to 300.
a) randomObject.Next(8, 300)
b) randomObject.Next(8, 301)
c) 1 + randomObject.Next(8, 300)
d) None of the above
b) randomObject.Next(8, 301)
SRE 6
The statement _____ returns a number in the range 15 to 35
a) randomObject.Next(15,36)
b) randomObject.Next(15, 35)
c) 10 + randomObject.Next(5, 26)
d) Both 1 and 3
d) Both 1 and 3
SRE 6
Use keyword _____ to define groups of related constants.
a) ReadOnly
b) Enum
c) Constants
d) Enumeration
b) Enum
SRE 6
The constants defined in an Enum _____
a) may use repeated values
b) can be accessed using the Enum’s name followed by the member access operator
c) are not required to declare a value
d) All of the above
d) All of the above
SRE 6
To clear the image in a PictureBox, set its Image property to _______
a) “”
b) Nothing
c) None
d) Empty
b) Nothing