Starting out with python ch6,8,10,12,13,14

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

what type of relationship exists between two object when one object is a specialized version of another object?

"has a"

In java it is possible to write a method that will return ______

A reference to an object, a string of characters, a whole number.

Which of the following statements draws the string "Love to animate!" starting a coordinates (200, 50)?

Text myWords = new Text (200.0, 50.0, "Love to animate!");

A sorting algorithm is a technique for scanning through an array and rearranging its contents in some specific order.

True

if a class has a method named finalise, it is called automatically just before an instance of the class is destroyed by the garbage collector.

True

java limits the number of dimensions that an array can have to 15

True

The ______indicates the number of elements the array can hold.

arrays data type

if you don't provide an access specifier for a class member, the class member is give __________ access by default.

Package

In the hexadecimal coloraturas value #CCAA99, the CC refers to the _________________ color component?

Red

A recursive method can have only one base case.

false

When a splash screen is displayed, the application does not load and execute until the user clicks the splash screen image with the mouse. T/F

false

You can declare an enumerated data type inside a method

false

when a local variable in an instance method has the same name as an instance field, the instance field hides the local variable.

false

The JVM periodically perform s the _________________ process to remove unreferenced objects from memory

garbage collection

Overloading means that multiple methods in the same class _________

have the same name but different parameter lists

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

instance

The Quicksort algorithm ___________________.

is in O(n log n) in the average case

a contiguous segment of an array is specified using two subscripts, lower and upper. which expression gives the position of the element in the middle of an array segment.

lower + upper / 2

All method specified by and interface are _____________

public

select all that apply which of the following are nodes that can be used in a scene graph? tree node leaf node root node branch node

tree node leaf node root node branch node

The binary search algorithm

will cut the portion of the array being searched in half each it fails to locate the search value.

The _________ arc type causes a straight line to be drawn fro mon endpoint of the arc to the other endpoint.

ArcType.CHORD

A class becomes abstract when you place the ___________ key word in the class definition.

abstract

when a subclass overloads a superclass method _________________.

both methods may be called with a subclass object

The binary search algorithm______

cannot be used to search an array that is not sorted

In memory, an array of String objects_______.

consists of an array of references to String objects

An array[] of N elements is being sorted using the insertion sort algorithm . the algorithm is at the last stage, with the segment. of the array in positions 0 through n-2 already sorted. How many array elements will a [n-1] have to be compared to , before it can be placed into its proper position?

could be any number of elements between 1 and n-1(inclusive)

a(n) ________________ is an action that takes place in a application, such as the clicking of a button.

event

Programs that operate in GUI environment must be ______________-

event driven

Linear time is the class of a complexity functions that are in __________

o(n)

by default, java initialises array elements to ___________________

0

_______________ tells the java compiler that a method is meant to override a method in the superclass.

@Override

given the following code, which statement is true? public class ClassB implements ClassA{ }

ClassB must override each method in ClassA

If you have defined a class, SavingsAccount, with a public static method, getNumberOfAccounts, and created a SavingsAccount object referenced by the variable account20, which of the following will call the getNUmberOfAccounts method?

SavingsAccount.getNumberOfAccounts();

Let F be an algorithm with complexity function f(n), and let G be an algorithm with complexity function g(n). if there exists a positive constant K such that the ratio f(n)/g(n) is less than or equal to K for all n greater or equal to 1 then____________

The algorithm F is asymptotically no worse that G

How would a stylesheet named javafxstyles.css be applied to a javaFX application, assuming that scene is variable that refers to a Scene object?

scene.getStylesheets().add("javafxstyles.css");

the scope of a public instance field is ____________________

the instance methods and methods outside the class

which of the following are constructors of the BorderPane class? BorderPane(center, top, right, bottom, left) BorderPane(left, right) BorderPane(top, bottom) BorderPane(center) BorderPane()

BorderPane(center, top, right, bottom, left)

The Box objects setPadding method takes a(n)_________as an argument.

Insets object

What are the regions of the BorderPane layout container

Left, right, center, above and below center, and top an bottom.

The control that displays a list of items and allows the user to select an item from the list is the ____________________ control.

ListView

which of the following are mouse event types? MOUSE_CLICKED MOUSE_PRESSED MOUSE_MOVED MOUSE_LIFTED

MOUSE_CLICKED MOUSE_PRESSED MOUSE_MOVED

A Problem can be soled recursively if it can be broken down into successive smaller problems that are identical to the overall problem

True

The following statement is an example of _____________ import java.util.*;

a wildcard import statement

A Static field is created by placing the key word static ________________.

after the access specifier and before the fields data type

To build a menu system you must _________

create the Menu objects and register an event handler for each menu item object, add the MenuBar object to the scene graph, create a MenuBar object.

In a window that is 640px wide by 480px high, the top right x,y coordinates would be (0,480)

false

To make a node half its original size, you pass the setScaleX method the value 2 and pass the setScaleY method value 0.5.

false

To indicate the data type of a variable in a UML diagram, you enter _________________

the variable name followed by a colon and the data type


संबंधित स्टडी सेट्स

Final Study (ALL Quiz) NETWORK CNET 56 Spring

View Set

Quality, Six Sigma, ISO & Lean Glossary of Terms

View Set

Economics - 3.3.4 - Normal profits, supernormal profits and losses - A Level

View Set