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
(38)

The scope of a local variable is

(Multiple Choice)
4.8/5
(43)

An access specifier indicates how the class may be accessed.

(True/False)
4.9/5
(37)

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

(Multiple Choice)
4.9/5
(31)

The key word new

(Multiple Choice)
4.8/5
(41)

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

(True/False)
4.8/5
(37)

When an argument is passed by value,

(Multiple Choice)
4.8/5
(33)

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
(35)

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

(Multiple Choice)
4.9/5
(41)

Methods that operate on an object's fields are called

(Multiple Choice)
4.8/5
(43)

UML diagrams do not contain

(Multiple Choice)
4.8/5
(36)

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

(Multiple Choice)
4.9/5
(36)

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

(Multiple Choice)
4.9/5
(40)

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

(True/False)
4.9/5
(30)

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

(Multiple Choice)
4.9/5
(30)

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

(Multiple Choice)
4.8/5
(29)

A constructor

(Multiple Choice)
5.0/5
(34)

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
(37)

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

(Multiple Choice)
4.9/5
(41)

You use this key word to import a class.

(Multiple Choice)
4.7/5
(28)
Showing 21 - 40 of 40
close modal

Filters

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