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. A ________________ is immutable.
called method
String object
wrapper class
int compareTo (String str)
2. Expressed in a Java program with single quotes
String replace (char oldChar - char newChar)
prefix form
character literal
public
3. Part of the standard Java class library - provides convenient methods for reading input values of various types. the input can come from various sources - including data typed interactively by the user or data stored in a file; the Scanner class can
visibility modifiers
self-governing
Scanner class
tokens
4. Begins with a backslash character ""
underscores
floating point numbers
escape sequences
String concat (String str)
5. 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
System.out.println
visibility modifiers
int compareTo (String str)
autoboxing
6. Specifies the packages and classes that will be used in a program so that the fully qualified name is not necessary with each reference.
parameter
num=Integer.parseInt(str);
class library
the "import" declaration
7. ______________ operators have higher precedence
delimiters
prefix form
String toLowerCase ( )
arithmetic
8. ____________ is instantiated in the traditional way using the new operator.
scope
encapsulation
flow of control
the DecimalFormat class
9. They clarify the role a certain number has in the program.
self-governing
constants
String substring (int offset - int endIndex)
flow of control
10. New memory space is reserved for that variable every time an instance of the class that is created.
instance data
a constructor
assignment conversion
return statement
11. Boolean type conversions are ___________
not possible
instance variable
literal
casting
12. Three ways in which Java conversions occur: _________ conversion - promotion - casting
assignment
class library
packages
local data
13. Returns the next input token as the indicated type.
byte nextByte( )
flow of control
constants
String next( )
14. A variable that refers to an object must be __________
declared
enumerated type
parameter
java.util class libary
15. Behaviors associated with a bank account (which include the ability to make deposits and withdrawals)
behaviors of an object
boolean equalsIgnoreCase (String str)
initialize
method invocation
16. Constructor: creates a new pseudorandom number generator.
static int parseInt (String str)
flow of control
operations
Random ( )
17. This declaration creates a Scanner object that reads input from the keyboard
Scanner scan=new Scanner (System.in);
reserved word void
java.lang package
arithmetic
18. Delimited by double quotation characters
accessor method
actual parameters
string literal
aliases
19. The only purpose of a private method is to help other methods of the class do their job. they are referred to as _________
string name;
method declaration
support methods
character string
20. A value that is passed into a method when it is invoked
Random class
arithmetic
byte to short
parameter
21. sides=10;
static int parseInt (String str)
assignment statement
prefix form
string name;
22. All wrapper classes are defined in ___________
encapsulation of an object
String replace (char oldChar - char newChar)
character string
java.lang package
23. 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.
method
reference
assignment conversion
method invocation
24. Declared in a class but not inside any particular method
assignment statement
String toLowerCase ( )
Scanner useDelimiter(String pattern)
instance data
25. The order in which statements are executed in a running program
scope
flow of control
instance variable
aliases
26. 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.
postfix form
declared
polymorphism
String toUpperCase ( )
27. An object should be self-governing - meaning that the instance data of an object should be modified only by that object.
instance variable
byte nextByte( )
header of a method
self-governing
28. Attempts to find the next occurence of the specified pattern - ignoring delimiters
String findInLine (String pattern)
byte to short
character string
uninitialized variables
29. 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
formal parameters
a constructor
enumerated type
String toLowerCase ( )
30. Includes the type of teh return value - the method name - and the list of parameters that the method accepts.
header of a method
String replace (char oldChar - char newChar)
attributes of an object
assignment conversion
31. 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 -
String nextLine( )
formal parameters
class
variable declaration
32. 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
public
variable declaration
initialize
pointer
33. Returns the next input token as a character string.
String next( )
String format (double number)
state of an object
autoboxing
34. After an object has been instantiated - we set the _________ to access its methods
dot operator
a constructor
class
null
35. Before you use a variable __________it
aliases
pointer
initialize
long
36. Returns all input remaining on the current line as a character string.
casting
String (String str)
String nextLine( )
pointer
37. _____ expression evaluated first
RH
called method
encapsulation of an object
instance data
38. All numeric types are _______ - meaning both positive and negative values can be stored in them
encapsulation
signed
behaviors of an object
not possible
39. Modifier>type/void>identifier>parameters>method body
character literal
char charAt (int index)
method declaration
declared
40. Returns a new string that is identical with this string except that every occurrence of oldChar is replaed by newChar
prefix form
static int parseInt (String str)
String replace (char oldChar - char newChar)
operations
41. 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
String toLowerCase ( )
instance variable
set
method
42. The fundamental characteristics that currently define the object. for example - part of a bank account's state is its current balance.
constructors
conditionals
double
state of an object
43. A set of classes that supports the development of programs
literal
class library
long
return statement
44. Returns an integer indicating if this string is lexically before - equal to - or lexically after the string str.
encapsulation
polymorphism
int compareTo (String str)
instance data
45. 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
encapsulation of an object
variable
character string
java.lang package
46. A null reference indicates that a variable does not refer to an object
boolean equalsIgnoreCase (String str)
null
scope
expression
47. Defined and then used as the type of a variable when it is declared; establishes all possible values of a variable of that type by listing - or enumerating - them.
delimiters
enumerated type
promotion
literal
48. Eight primitive data types: four subsets of integers - two subsets of ________ - a character data type - and a boolean data type
String toLowerCase ( )
floating point numbers
the DecimalFormat class
parameter list
49. 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
string name;
mutator method
actual parameters
service methods
50. Returns a new string consisting of this string concatenated with str.
String concat (String str)
Scanner class
java.lang package
boolean hasNext( )
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