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. 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
instance variable
method invocation
state of an object
2. Returns true if the scanner has anotehr token in its input.
boolean hasNext( )
conditionals
java.lang package
arithmetic
3. Variables that don't contain any data
set
a constructor
uninitialized variables
Scanner class
4. A name for a location in memory used to hold a data value.
variable
packages
flow of control
parameter
5. sides=10;
System.out.println
String next( )
set
assignment statement
6. A value that is passed into a method when it is invoked
parameter
postfix form
instantiation
String replace (char oldChar - char newChar)
7. Constructor: creates a new string object with the same characters as str.
String (String str)
method declaration
assignment conversion
data values
8. The act of creating an object using the "new" operator
instantiation
boolean value
class library
floating point numbers
9. Returns the next input token as the indicated type.
variable name
byte nextByte( )
method declaration
int compareTo (String str)
10. 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
String findInLine (String pattern)
boolean value
inheritance
instance data
11. A variable that refers to an object must be __________
parameter
static int parseInt (String str)
assignment statement
declared
12. The fundamental characteristics that currently define the object. for example - part of a bank account's state is its current balance.
state of an object
expression
the "import" declaration
casting
13. 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:
int length( )
local data
num=Integer.parseInt(str);
class level
14. The declarations of object variables have a similar structure to the declaration of _______________
String substring (int offset - int endIndex)
String toUpperCase ( )
parentheses
primitive variables
15. Represents either a primitive value or an object
operations
postfix form
variable name
header of a method
16. Returns the next input token as the indicated type.
string name;
boolean nextBoolean( )
have void
service methods
17. 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
class library
String replace (char oldChar - char newChar)
accessor method
18. 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
wrapper class
variable declaration
long
parameter list
19. Examples of Scanner ________: Scanner (InputStream source) - Scanner(File source) - Scanner(String source)
assignment
constructors
variable declaration
java.lang package
20. 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
data values
visibility modifiers
escape sequences
casting
21. Constructors do not even _______; therefore they cannot return a value.
Understanding
local data
operations
have void
22. An object should be self-governing - meaning that the instance data of an object should be modified only by that object.
constants
self-governing
casting
delimiters
23. ______________ operators have higher precedence
encapsulation
boolean hasNext( )
promotion
arithmetic
24. A ________________ is immutable.
reference
String object
uninitialized variables
character string
25. Also called a selection statement b/c it allows us to choose which statement will be executed next.
character literal
String nextLine( )
have void
conditional statement
26. Expressed in a Java program with single quotes
RH
parameter
the "import" declaration
character literal
27. Methods in the Math class are ______
static
arithmetic
boolean nextBoolean( )
String (String str)
28. Returns the number of characters in this stirng.
String nextLine( )
int length( )
parameter list
behaviors of an object
29. Provides generic formatting capabilities for numbers; you don't instantiate a NumberFormat object by using the "new" operator.
conditional statement
String substring (int offset - int endIndex)
RH
NumberFormat class
30. Methods that provide services to the client must be declared with public visibility so that they can be invoked by the client.
class library
private
assignment conversion
service methods
31. Cast operator has _________ precedence to division
state of an object
variable declaration
higher
String (String str)
32. Returns a new string that is identical with this string except that every occurrence of oldChar is replaed by newChar
reserved word void
polymorphism
String replace (char oldChar - char newChar)
method
33. Constructor: creates a new pseudorandom number generator.
operations
delimiters
variable declaration
Random ( )
34. 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;
conditionals
String toLowerCase ( )
reserved word void
35. Two floating data types: float - _______
tokens
java.lang package
flow of control
double
36. An object in Java - defined by the class String
character string
class
num=Integer.parseInt(str);
scope
37. Two categories of statements that control the flow of executing through a method: __________ and loops
formal parameters
conditionals
dot operator
the DecimalFormat class
38. A class usually provides services to access and modify __________
static
data values
support methods
declared
39. New memory space is reserved for that variable every time an instance of the class that is created.
instance data
System.out.println
a constructor
RH
40. Count++; count--
signed
long
method declaration
postfix form
41. Delimited by double quotation characters
uninitialized variables
inheritance
string literal
String format (double number)
42. We use an object when we have a _________ to it
attributes of an object
assignment conversion
reference
variable declaration
43. Before you use a variable __________it
not possible
initialize
constructors
dot operator
44. Provides read-only access to a particular value - e.g. getX where X is the value to which it provides access.
accessor method
declared
static
character string
45. Elements of input
a constructor
conditional statement
floating point numbers
tokens
46. ++count; -- count
literal
prefix form
higher
import java.util*
47. This declaration creates a Scanner object that reads input from the keyboard
null
wrapper class
Scanner scan=new Scanner (System.in);
boolean value
48. Returns a new string identical to this string except all uppercase letters are converted to their lowercase equivalent.
inheritance
postfix form
String replace (char oldChar - char newChar)
String toLowerCase ( )
49. Returns the int corresponding to the value stored in the specified string
tokens
instance variable
static int parseInt (String str)
method declaration
50. Three ways in which Java conversions occur: _________ conversion - promotion - casting
assignment
String toUpperCase ( )
parentheses
data values
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