Exam 3: A First Look at Classes and Objects

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

For the following code, which statement is not true? Public class Circle { private double radius; Public double x; Private double y; }

(Multiple Choice)
4.8/5
(84)

The scope of a local variable is

(Multiple Choice)
4.7/5
(77)

An access specifier indicates how the class may be accessed.

(True/False)
4.9/5
(90)

What is the following statement an example of? import java.util.Scanner;

(Multiple Choice)
4.9/5
(80)

The key word new

(Multiple Choice)
4.8/5
(82)

A constructor is a method that is automatically called when an object is created.

(True/False)
4.8/5
(77)

When an argument is passed by value,

(Multiple Choice)
4.9/5
(81)

For the following code, which statement is not true? Public class Sphere { private double radius; Public double x; Private double y; Private double z; }

(Multiple Choice)
4.8/5
(84)

What is the following statement an example of? import java.util.*;

(Multiple Choice)
4.9/5
(83)

Methods that operate on an object's fields are called

(Multiple Choice)
4.8/5
(90)

UML diagrams do not contain

(Multiple Choice)
4.8/5
(86)

It is common practice in object-oriented programming to make all of a class's

(Multiple Choice)
4.9/5
(77)

Which of the following is not involved in finding the classes when developing an object-oriented application?

(Multiple Choice)
4.9/5
(89)

Shadowing is the term used to describe where the field name is hidden by the name of a local or parameter variable.

(True/False)
5.0/5
(69)

A UML diagram uses the ________ symbol to indicate that a member is private.

(Multiple Choice)
4.9/5
(66)

Another term for an object of a class is a(n)

(Multiple Choice)
4.8/5
(70)

A constructor

(Multiple Choice)
5.0/5
(80)

Data hiding, which means that critical data stored inside the object is protected from code outside the object, is accomplished in Java by

(Multiple Choice)
4.8/5
(80)

After the header, the body of the method appears inside a set of

(Multiple Choice)
4.9/5
(93)

You use this key word to import a class.

(Multiple Choice)
4.8/5
(67)
Showing 21 - 40 of 40
close modal

Filters

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