SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
|
Email
Search
Test your basic knowledge |
Object Oriented Programming
Start Test
Study First
Subject
:
it-skills
Instructions:
Answer 50 questions in 15 minutes.
If you are not ready to take this test, you can
study here
.
Match each statement with the correct term.
Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.
This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. In the header of a method specifies he types of the values that are passed and the names by which the called method will refer to those values.
assignment conversion
the "import" declaration
local data
parameter list
2. _____ expression evaluated first
arithmetic
higher
RH
attributes of an object
3. A combo of one or more operators and operands that usually perform a calculation; operands can be literals - constants - variables - or other sources of data
expression
support methods
Scanner scan=new Scanner (System.in);
uninitialized variables
4. Allows all classes in the java.util package to be referenced in the program without qualfying each reference.
method
double
import java.util*
java.util class libary
5. Count++; count--
String toLowerCase ( )
mutator method
assignment statement
postfix form
6. Returns the int corresponding to the value stored in the specified string
string literal
declared
polymorphism
static int parseInt (String str)
7. System.out object represents an output device or file; we send the println message to the System.out object to request that some text be printed
Understanding
System.out.println
escape sequences
wrapper class
8. A ____________ and definition always give the parameter list in parentheses after the method name. if there are no parameters - an empty set of parentheses is used
boolean equalsIgnoreCase (String str)
System.out.println
instantiation
method invocation
9. Delimited by double quotation characters
string literal
boolean hasNext( )
Scanner scan=new Scanner (System.in);
NumberFormat class
10. Each piece of data that we send to a method
conditional statement
flow of control
parameter
self-governing
11. Instructs the compiler to reserve a portion of main memory space large enough to hold a particular type of value and indicates the name by which we refer to that location
Understanding
RH
actual parameters
variable declaration
12. Constructors do not even _______; therefore they cannot return a value.
reference
string name;
have void
assignment conversion
13. An object in Java - defined by the class String
public
character string
formal parameters
polymorphism
14. Sets the scanner's delimiting pattern.
parameter
Scanner useDelimiter(String pattern)
static
class level
15. The blueprint of an object. establishes the kind of data an object of that type will hold and defines the methods that represent the behavior of such objects. however - a class contains no space to store data. each object has space for its own data -
initialize
class
Scanner useDelimiter(String pattern)
dot operator
16. The fundamental characteristics that currently define the object. for example - part of a bank account's state is its current balance.
expression
state of an object
Scanner class
support methods
17. ++count; -- count
higher
escape sequences
character string
prefix form
18. Modifier>type/void>identifier>parameters>method body
byte nextByte( )
reserved word void
assignment
method declaration
19. A group of programming statements that is given a name. when a method is invoked - its statements are executed. a set of methods is associated with an object and defines its potential behaviors. to define the ability to make a deposit into a bank acc
signed
Scanner class
method
method invocation
20. Provides read-only access to a particular value - e.g. getX where X is the value to which it provides access.
encapsulation
String (String str)
accessor method
parentheses
21. Every object has two things: a state and a _____ of behaviors
String concat (String str)
set
null
prefix form
22. A set of classes that supports the development of programs
instantiation
class library
String next( )
aliases
23. Returns a new string identical to this string except all lowercase letters are converted to their uppercase equivalent.
promotion
delimiters
reserved word void
String toUpperCase ( )
24. Four integer data types: byte - short - int - _____
return statement
long
underscores
boolean equals (String str)
25. Behaviors associated with a bank account (which include the ability to make deposits and withdrawals)
scope
class library
behaviors of an object
return statement
26. Returns the next input token as a character string.
String next( )
tokens
autoboxing
state of an object
27. Specifies the packages and classes that will be used in a program so that the fully qualified name is not necessary with each reference.
mutator method
instance data
the "import" declaration
have void
28. Declared in a class but not inside any particular method
String next( )
instance data
String concat (String str)
local data
29. Protection and management of an object's info. this implies that the object should be self-governing. the only changes made to the state of the object should be accomplished by that object's methods. other objects should not be able to "reach in" to
byte to short
encapsulation of an object
private
boolean equals (String str)
30. Five steps of problem-solving: ____________ the problem - Designing a solution - Considering alternatives to the solution and refining the solution - Implementing the solution - Testing the solution and fixing any problems that exist
Understanding
reserved word void
data values
static int parseInt (String str)
31. Constructor: creates a new string object with the same characters as str.
boolean hasNext( )
autoboxing
String (String str)
String concat (String str)
32. Returns a new string identical to this string except all uppercase letters are converted to their lowercase equivalent.
arithmetic
Scanner class
prefix form
String toLowerCase ( )
33. Begins with a backslash character ""
int compareTo (String str)
String (String str)
local data
escape sequences
34. All wrapper classes are defined in ___________
parameter
java.lang package
autoboxing
reference
35. An object should be self-governing - meaning that the instance data of an object should be modified only by that object.
import java.util*
parameter
self-governing
java.util class libary
36. The values passed into a method in an invocation; these are called the arguments to the method
method declaration
instance data
reference
actual parameters
37. Returns a new string consisting of this string concatenated with str.
parameter
state of an object
String nextLine( )
String concat (String str)
38. Expressed in a Java program with single quotes
underscores
dot operator
character literal
constructors
39. format for constants: all upper-case; separated by ________
not possible
parameter
underscores
autoboxing
40. When two variables contain the same address and therefore refer to the same object; one important implication of _________ is that when we use one ref to change an object - it is also changed for the other reference because there is really only one o
aliases
literal
parameter
attributes of an object
41. The one that is invoked
null
actual parameters
called method
NumberFormat class
42. Three ways in which Java conversions occur: _________ conversion - promotion - casting
assignment
boolean equals (String str)
int compareTo (String str)
java.lang package
43. Returns a new string that is a subset of this string starting at index offset and extending through endIndx-1;
String substring (int offset - int endIndex)
Scanner class
parameter
constructors
44. The classes of the Java standard class library are grouped into __________.
conditional statement
packages
not possible
class library
45. Returns a string containing the specified number formatted according to this object's pattern.
support methods
String format (double number)
polymorphism
packages
46. A special method that has the same name as the class. After the "new" operator creates the object it is invoked to help set it up initially
String object
underscores
boolean nextBoolean( )
a constructor
47. Since an object ref var holds the address of the object - it can be thought of as a ____ to the location in memory where the object is held
String concat (String str)
formal parameters
pointer
wrapper class
48. Represents either a primitive value or an object
byte nextByte( )
String toLowerCase ( )
variable name
assignment conversion
49. An explicit data value used in a program
encapsulation
literal
delimiters
char charAt (int index)
50. Returns the number of characters in this stirng.
null
public
int length( )
delimiters