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. New memory space is reserved for that variable every time an instance of the class that is created.
instance data
Understanding
String replace (char oldChar - char newChar)
header of a method
2. Returns all input remaining on the current line as a character string.
support methods
String nextLine( )
initialize
packages
3. The declarations of object variables have a similar structure to the declaration of _______________
byte nextByte( )
behaviors of an object
primitive variables
delimiters
4. Changes a particular value - e.g.setX - where X is the value they are setting.
data values
mutator method
signed
set
5. 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
character string
String concat (String str)
arithmetic
method
6. Elements of input
self-governing
character literal
a constructor
tokens
7. Constructor: creates a new string object with the same characters as str.
conditionals
String (String str)
tokens
String substring (int offset - int endIndex)
8. Constructor: creates a new pseudorandom number generator.
byte nextByte( )
Random ( )
String format (double number)
boolean value
9. 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
declared
instance data
method declaration
variable declaration
10. Provide various methods related to the management of the associated primitive type. Used when we create an object that serves as a container to hold various types of other objects - and we want the object to hold a simple integer value. In this case
Random class
conditional statement
wrapper class
a constructor
11. Constants are ______ because the can't be changed once you use the final modifier
not possible
method invocation
public
signed
12. ++count; -- count
NumberFormat class
assignment statement
delimiters
prefix form
13. 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
method invocation
signed
String substring (int offset - int endIndex)
declared
14. An object has behaviors - which are defined by the ________ associated with that object.
mutator method
operations
parentheses
pointer
15. We use an object when we have a _________ to it
num=Integer.parseInt(str);
reference
attributes of an object
flow of control
16. All numeric types are _______ - meaning both positive and negative values can be stored in them
higher
variable declaration
signed
Scanner scan=new Scanner (System.in);
17. 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
enumerated type
boolean value
attributes of an object
a constructor
18. declaration that creates a String variable that holds a reference to a String object; an object variable doesn't hold an object itself - it holds the address of an object
inheritance
string name;
the DecimalFormat class
behaviors of an object
19. Boolean type conversions are ___________
not possible
java.util class libary
boolean value
Scanner useDelimiter(String pattern)
20. The idea that we can refer to multiple types of related objects over time in consistent ways. it gives us the ability to design powerful and elegant solutions to problems that deal with multiple objects.
conditionals
class level
header of a method
polymorphism
21. ____________ is instantiated in the traditional way using the new operator.
return statement
java.lang package
instance variable
the DecimalFormat class
22. Return type specified in the method header can be a primitive type - class name or the ________; when a method does not return any value - void is used as the return type - as is always done with the main method.
reserved word void
delimiters
parameter
service methods
23. Returns the int corresponding to the value stored in the specified string
static int parseInt (String str)
encapsulation of an object
literal
byte to short
24. Returns a new string identical to this string except all uppercase letters are converted to their lowercase equivalent.
parameter
delimiters
String object
String toLowerCase ( )
25. After an object has been instantiated - we set the _________ to access its methods
called method
dot operator
parameter
instance variable
26. Four integer data types: byte - short - int - _____
pointer
local data
dot operator
long
27. Part of the java.util class; picks a number at random out of a range of values.
set
String (String str)
boolean equalsIgnoreCase (String str)
Random class
28. 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
autoboxing
double
arithmetic
29. Occurs when a value of one type is assigned to a variable of another type during which the value is converted to the new type.
class library
declared
method
assignment conversion
30. Returns a new string identical to this string except all lowercase letters are converted to their uppercase equivalent.
the "import" declaration
String toUpperCase ( )
visibility modifiers
reference
31. The values passed into a method in an invocation; these are called the arguments to the method
actual parameters
double
long
initialize
32. Allows all classes in the java.util package to be referenced in the program without qualfying each reference.
polymorphism
pointer
character string
import java.util*
33. Widening byte: _________ - to int - to long - to float - to double
RH
reference
byte to short
assignment conversion
34. A variable that refers to an object must be __________
int compareTo (String str)
prefix form
declared
public
35. Returns a new string consisting of this string concatenated with str.
operations
autoboxing
String concat (String str)
attributes of an object
36. Instance data should be defined with what________ visibility
byte to short
boolean value
private
reserved word void
37. Returns the next input token as the indicated type.
class level
reference
method invocation
byte nextByte( )
38. Specifies the packages and classes that will be used in a program so that the fully qualified name is not necessary with each reference.
encapsulation
the "import" declaration
class level
enumerated type
39. Returns a string containing the specified number formatted according to this object's pattern.
String toLowerCase ( )
the "import" declaration
private
String format (double number)
40. The automatic conversion between a primitive value and a corresponding wrapper object.
scope
autoboxing
java.util class libary
Random class
41. An object should be self-governing - meaning that the instance data of an object should be modified only by that object.
self-governing
polymorphism
instance data
inheritance
42. 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 -
static int parseInt (String str)
NumberFormat class
class
static
43. Count++; count--
polymorphism
postfix form
floating point numbers
attributes of an object
44. Returns the next input token as a character string.
the DecimalFormat class
operations
String next( )
tokens
45. Even though a method may not take parameters - _________ are still necessary to indicate that a method is being invoked
initialize
parentheses
public
conditional statement
46. A class usually provides services to access and modify __________
RH
Scanner scan=new Scanner (System.in);
byte nextByte( )
data values
47. An explicit data value used in a program
pointer
literal
set
Understanding
48. Automatically imported because they are fundamental and can be thought of as basic extensions to the language.
operations
java.lang package
attributes of an object
expression
49. Before you use a variable __________it
scope
initialize
visibility modifiers
the "import" declaration
50. Modifier>type/void>identifier>parameters>method body
variable
postfix form
method declaration
self-governing
Sorry!:) No result found.
Can you answer 50 questions in 15 minutes?
Let me suggest you:
Browse all subjects
Browse all tests
Most popular tests
Major Subjects
Tests & Exams
AP
CLEP
DSST
GRE
SAT
GMAT
Certifications
CISSP go to https://www.isc2.org/
PMP
ITIL
RHCE
MCTS
More...
IT Skills
Android Programming
Data Modeling
Objective C Programming
Basic Python Programming
Adobe Illustrator
More...
Business Skills
Advertising Techniques
Business Accounting Basics
Business Strategy
Human Resource Management
Marketing Basics
More...
Soft Skills
Body Language
People Skills
Public Speaking
Persuasion
Job Hunting And Resumes
More...
Vocabulary
GRE Vocab
SAT Vocab
TOEFL Essential Vocab
Basic English Words For All
Global Words You Should Know
Business English
More...
Languages
AP German Vocab
AP Latin Vocab
SAT Subject Test: French
Italian Survival
Norwegian Survival
More...
Engineering
Audio Engineering
Computer Science Engineering
Aerospace Engineering
Chemical Engineering
Structural Engineering
More...
Health Sciences
Basic Nursing Skills
Health Science Language Fundamentals
Veterinary Technology Medical Language
Cardiology
Clinical Surgery
More...
English
Grammar Fundamentals
Literary And Rhetorical Vocab
Elements Of Style Vocab
Introduction To English Major
Complete Advanced Sentences
Literature
Homonyms
More...
Math
Algebra Formulas
Basic Arithmetic: Measurements
Metric Conversions
Geometric Properties
Important Math Facts
Number Sense Vocab
Business Math
More...
Other Major Subjects
Science
Economics
History
Law
Performing-arts
Cooking
Logic & Reasoning
Trivia
Browse all subjects
Browse all tests
Most popular tests