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. Provides generic formatting capabilities for numbers; you don't instantiate a NumberFormat object by using the "new" operator.
instance variable
instantiation
NumberFormat class
variable name
2. Constructor: creates a new string object with the same characters as str.
signed
called method
delimiters
String (String str)
3. Allows all classes in the java.util package to be referenced in the program without qualfying each reference.
class library
instance variable
java.lang package
import java.util*
4. 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
parameter
string name;
boolean equalsIgnoreCase (String str)
inheritance
5. Returns all input remaining on the current line as a character string.
String nextLine( )
Understanding
String concat (String str)
pointer
6. Changes a particular value - e.g.setX - where X is the value they are setting.
mutator method
instance data
variable name
String object
7. Returns the number of characters in this stirng.
local data
casting
int length( )
boolean hasNext( )
8. format for constants: all upper-case; separated by ________
boolean equalsIgnoreCase (String str)
underscores
the "import" declaration
class level
9. Specifies the packages and classes that will be used in a program so that the fully qualified name is not necessary with each reference.
visibility modifiers
higher
the "import" declaration
called method
10. The fundamental characteristics that currently define the object. for example - part of a bank account's state is its current balance.
String nextLine( )
RH
instantiation
state of an object
11. Also called a selection statement b/c it allows us to choose which statement will be executed next.
primitive variables
string literal
conditional statement
flow of control
12. All numeric types are _______ - meaning both positive and negative values can be stored in them
aliases
signed
int length( )
System.out.println
13. Behaviors associated with a bank account (which include the ability to make deposits and withdrawals)
behaviors of an object
attributes of an object
java.util class libary
called method
14. If a class contains the _________ height - it should also probably contain the methods: getHeight and setHeight
String object
formal parameters
instance variable
primitive variables
15. Before you use a variable __________it
assignment statement
inheritance
import java.util*
initialize
16. The classes of the Java standard class library are grouped into __________.
packages
byte to short
parameter
String nextLine( )
17. A set of classes that supports the development of programs
constructors
enumerated type
class library
signed
18. Returns the character at the specified index.
parentheses
String concat (String str)
java.lang package
char charAt (int index)
19. Examples of Scanner ________: Scanner (InputStream source) - Scanner(File source) - Scanner(String source)
byte nextByte( )
constructors
class library
assignment conversion
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.
Understanding
declared
System.out.println
polymorphism
21. An object in Java - defined by the class String
encapsulation
declared
postfix form
character string
22. _____ expression evaluated first
boolean equalsIgnoreCase (String str)
scope
RH
class
23. ++count; -- count
visibility modifiers
int compareTo (String str)
prefix form
instance variable
24. Two categories of statements that control the flow of executing through a method: __________ and loops
support methods
class level
conditionals
local data
25. Constants are ______ because the can't be changed once you use the final modifier
String next( )
Scanner class
String substring (int offset - int endIndex)
public
26. Variables that don't contain any data
the "import" declaration
NumberFormat class
uninitialized variables
String (String str)
27. New memory space is reserved for that variable every time an instance of the class that is created.
String concat (String str)
byte to short
instance data
conditional statement
28. The values it stores internally - which may be represented as primitive data or as other objects. for example - a bank account object can store a floating point number (a primitive value) that represents the balance of the account. it can also contai
encapsulation
attributes of an object
java.lang package
uninitialized variables
29. How classes are created from other classes. the definition of one class can be based on another class that already exists. inheritance is a form of software reuse - capitalizing on the similarities between various kinds of classes that we want to cre
inheritance
java.lang package
class
enumerated type
30. An object should be self-governing - meaning that the instance data of an object should be modified only by that object.
self-governing
parameter list
constants
string literal
31. A variable that refers to an object must be __________
the "import" declaration
method
constructors
declared
32. Returns true if this string contains the same characters as str (without regard to case) and false otherwise.
class level
visibility modifiers
boolean equalsIgnoreCase (String str)
class
33. Only two valid values: true and false; can indicate whether a particular condition is true - but can also be used to represent any situation that has two states - such as a light bulb being on or off
boolean value
autoboxing
casting
prefix form
34. Part of the java.util class; picks a number at random out of a range of values.
Random class
literal
accessor method
have void
35. The automatic conversion between a primitive value and a corresponding wrapper object.
postfix form
String (String str)
autoboxing
RH
36. The Scanner class is part of ___________________
java.util class libary
encapsulation of an object
encapsulation
aliases
37. Includes the type of teh return value - the method name - and the list of parameters that the method accepts.
class
String format (double number)
self-governing
header of a method
38. The only purpose of a private method is to help other methods of the class do their job. they are referred to as _________
method declaration
variable
conditional statement
support methods
39. 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
flow of control
assignment statement
operations
method invocation
40. Widening byte: _________ - to int - to long - to float - to double
byte to short
static
boolean nextBoolean( )
conditional statement
41. A value that is passed into a method when it is invoked
parameter
floating point numbers
String nextLine( )
variable name
42. The one that is invoked
method
instance variable
prefix form
called method
43. 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
method declaration
Random class
encapsulation of an object
character literal
44. Attempts to find the next occurence of the specified pattern - ignoring delimiters
String findInLine (String pattern)
class library
the "import" declaration
parentheses
45. 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
a constructor
not possible
Understanding
System.out.println
46. 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
NumberFormat class
boolean value
aliases
dot operator
47. Provides read-only access to a particular value - e.g. getX where X is the value to which it provides access.
flow of control
initialize
variable
accessor method
48. Delimited by double quotation characters
string literal
header of a method
character literal
reserved word void
49. Returns the next input token as the indicated type.
class library
boolean nextBoolean( )
RH
long
50. Returns a new string that is a subset of this string starting at index offset and extending through endIndx-1;
constants
String substring (int offset - int endIndex)
signed
scope
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