Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

8/ Which best describes the word \"scope\" when applied to a variable? _________

ID: 3578288 • Letter: 8

Question

8/

Which best describes the word "scope" when applied to a variable?

____________

9/

In the example above what would be the value shown in Display and why?

____________

10/

Which of the following is true of the "return" statement in methods?

____________

11/

If the program runs but the answer is wrong this indicates a:

____________

12/

If a program has syntax of spelling errors it indicates a:

____________

13/

If you enter a double where an int was expected, this is an example of a:

____________

14/

Which best describes a C# class?

____________

15/

In a class, fields are:

____________

16/

Which of the following are true of constructors?

____________

17/

What happens when you make a class new?

____________

18/

A property in C# can best be defined as:

____________

19/

Overloading a constructor means:

any variable can be seen anywhere in the program

Explanation / Answer

8)
Scope refers to what context the variable can be accessed.
Typically, its scope is determined by which block
(which set of curley braces ) it is declared in.

9) Nothing because Cube isn't called

In the program we have not called the cube() function so nothing will
print.

10) All of the Above
It must return the same type of value as indicated in the method signature (if int, it must return an int)
Any code in a method after a return will not be processes that is why
It is the last statement in a method.

11) Logic error
if the program runs but the answer is wrong that means there is no comppiler adn runtime error because
compile error comes during compiling of a program and run time error comes
during running the code.

12) None of the above

If a program has syntax of spelling errors it indicates as a syntax error
because we made mistake in the syntax of the program.

13) runtime error
During running the code we got this error.

14) A collection of methods

Class is the collection of methods.

15) Class level variables that describe the class

16) All of the Above
Constructor holds all the properties mentioned.

17) You create a new instance of the class and run the appropriate constructor to initialize it.

18) Class level variables that describe the class

19) A class can be initialized in more than one way (though only one can be used with any particular instance)

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote