Section 1

Preview this deck

What is a literal?

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (33)

Section 1

(33 cards)

What is a literal?

Front

A fixed value

Back

How big is a byte?

Front

8 bits

Back

Truthy values are values treated as true in a boolean context

Front

True

Back

True or False? The equals() method is equivalent to the == operator, unless overridden

Front

True

Back

What is the range for a double? How many bytes is it?

Front

1.40129846432481707e-45 to 3.40282346638528860e+38 (positive or negative) Eight bytes

Back

True or False: An interface can extend more than one interface

Front

True

Back

What is the range for an int? How many bytes is it?

Front

-2,147,483,648 to 2,147,483,647 Four bytes

Back

Which HTTP method is best suited for forms where a user enters a password such as a login form?

Front

Post

Back

True or False: Because sets have no ordering, there is no way to retrieve a specific object from a Set immediately.

Front

True

Back

In a typical HTML document, < head > and < body > are considered sibling elements

Front

True

Back

A class can be abstract, even if all of its methods are concrete.

Front

True

Back

True or False: The subclass of an abstract class cannot be abstract.

Front

False

Back

Which of these is a consequence of adding a method declaration to an interface after it has been implemented?

Front

Every implementing subclass would need to add a definition for the new method.

Back

What is a bit?

Front

A 0 or 1 in binary

Back

What is the range for a short? How many bytes is it?

Front

-32,768 to 32,767 Two bytes

Back

Is assembly compiled?

Front

No.

Back

True or False: A finally block will always execute, regardless of whether an exception is caught

Front

True

Back

DOM stands for

Front

Document Object Model

Back

How do you create a function in JavaScript?

Front

function myFunction()

Back

How does a computer physically indicate a binary 0 or 1?

Front

0 is a weak electric current and 1 is a stronger electric current.

Back

What is the range for a long? How many bytes is it?

Front

-9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 (9 quintillion) Eight bytes

Back

True or False: If one class can be described as a "specific example" of another, that relationship can be described through inheritance

Front

True

Back

What is the purpose of the hashcode() method?

Front

To provide a unique identifier for an instance of an object

Back

Which interface does not extend the Collection interface? List, Set, Queue, or Map

Front

Map

Back

True or False: An array is a type of Collection in Java

Front

False

Back

True or False: Inheritance creates a "has-a(n)" relationship between two objects

Front

False

Back

What is the range for a long double? How many bytes is it?

Front

A whole lot. 16 bytes

Back

Which HTTP method is best suited if you want information sent to be bookmarked?

Front

Get

Back

True or False: if the class Car extends class Automobile, then an instance of Automobile can access Car methods

Front

False

Back

What is the range of a byte value?

Front

-128 to 127

Back

"Collections" is?

Front

A class filled with static methods used to manipulate collections

Back

You can have multiple catch blocks for a single try block.

Front

True

Back

True or False: new String() will create a new String object in memory, even if there is a matching String in memory already

Front

True

Back