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. Behaviors associated with a bank account (which include the ability to make deposits and withdrawals)
floating point numbers
behaviors of an object
autoboxing
signed
2. Variables that don't contain any data
behaviors of an object
uninitialized variables
not possible
local data
3. 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
String replace (char oldChar - char newChar)
static
declared
4. Returns the next input token as the indicated type.
String toUpperCase ( )
boolean nextBoolean( )
String (String str)
scope
5. format for constants: all upper-case; separated by ________
underscores
parameter
String toLowerCase ( )
String concat (String str)
6. A name for a location in memory used to hold a data value.
method
initialize
variable
prefix form
7. 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
casting
postfix form
System.out.println
variable declaration
8. After an object has been instantiated - we set the _________ to access its methods
the "import" declaration
dot operator
delimiters
double
9. Returns the next input token as a character string.
initialize
String next( )
inheritance
java.util class libary
10. 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
double
attributes of an object
dot operator
casting
11. Methods in the Math class are ______
primitive variables
instantiation
String format (double number)
static
12. If the string object str holds the string "987" - the following line of code converts the string into the integer variable 987 and stores that value in the int variable num:
num=Integer.parseInt(str);
variable
variable declaration
String nextLine( )
13. 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.
initialize
instance data
polymorphism
String object
14. A null reference indicates that a variable does not refer to an object
boolean equals (String str)
parameter list
pointer
null
15. 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.
String replace (char oldChar - char newChar)
boolean value
String format (double number)
parameter list
16. Sets the scanner's delimiting pattern.
Scanner useDelimiter(String pattern)
static int parseInt (String str)
accessor method
java.lang package
17. 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
Scanner scan=new Scanner (System.in);
class library
boolean value
character literal
18. sides=10;
RH
boolean equals (String str)
assignment statement
polymorphism
19. Returns true if the scanner has anotehr token in its input.
byte to short
java.util class libary
boolean hasNext( )
String concat (String str)
20. 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
pointer
attributes of an object
wrapper class
visibility modifiers
21. 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
parameter list
instance data
constructors
method invocation
22. Widening byte: _________ - to int - to long - to float - to double
byte to short
primitive variables
boolean equalsIgnoreCase (String str)
operations
23. Changes a particular value - e.g.setX - where X is the value they are setting.
string name;
mutator method
method invocation
service methods
24. All numeric types are _______ - meaning both positive and negative values can be stored in them
flow of control
delimiters
support methods
signed
25. An object in Java - defined by the class String
String format (double number)
behaviors of an object
character string
mutator method
26. If a class contains the _________ height - it should also probably contain the methods: getHeight and setHeight
parentheses
signed
instance variable
RH
27. Returns a new string that is a subset of this string starting at index offset and extending through endIndx-1;
arithmetic
inheritance
String substring (int offset - int endIndex)
initialize
28. Attempts to find the next occurence of the specified pattern - ignoring delimiters
String findInLine (String pattern)
string name;
boolean hasNext( )
mutator method
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
variable name
String toUpperCase ( )
encapsulation of an object
instantiation
30. Provides read-only access to a particular value - e.g. getX where X is the value to which it provides access.
aliases
String format (double number)
accessor method
a constructor
31. Constants are ______ because the can't be changed once you use the final modifier
method
attributes of an object
public
import java.util*
32. All wrapper classes are defined in ___________
java.lang package
Scanner class
class
class level
33. A ________________ is immutable.
state of an object
a constructor
String object
called method
34. Variables and constants can be referenced in any method of the class by declaring at the _________
accessor method
constructors
class level
state of an object
35. Three ways in which Java conversions occur: _________ conversion - promotion - casting
literal
java.lang package
assignment
class level
36. Modifier>type/void>identifier>parameters>method body
java.lang package
dot operator
public
method declaration
37. The names of the parameters in the header of the method declaration
formal parameters
Random class
byte nextByte( )
state of an object
38. Returns an integer indicating if this string is lexically before - equal to - or lexically after the string str.
byte to short
int compareTo (String str)
string literal
import java.util*
39. Provides generic formatting capabilities for numbers; you don't instantiate a NumberFormat object by using the "new" operator.
constructors
NumberFormat class
scope
state of an object
40. Returns a new string identical to this string except all uppercase letters are converted to their lowercase equivalent.
String toLowerCase ( )
literal
private
pointer
41. Count++; count--
polymorphism
data values
postfix form
int compareTo (String str)
42. 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
method
parameter
char charAt (int index)
String nextLine( )
43. Occurs automatically when certain operators need to modify their opeands in order to perform the operation
promotion
underscores
operations
assignment
44. ____________ is instantiated in the traditional way using the new operator.
the DecimalFormat class
pointer
underscores
private
45. The automatic conversion between a primitive value and a corresponding wrapper object.
casting
autoboxing
pointer
null
46. The classes of the Java standard class library are grouped into __________.
null
packages
wrapper class
long
47. A method that returns a value must have a _________
parentheses
scope
return statement
method declaration
48. ______________ operators have higher precedence
method invocation
arithmetic
escape sequences
initialize
49. Methods that provide services to the client must be declared with public visibility so that they can be invoked by the client.
String next( )
uninitialized variables
self-governing
service methods
50. A Java operator that is specified by a type name in parentheses; truncates rather than rounds; useful in division if u want an integer to be treated as a float or double
reference
data values
tokens
casting
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