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. Returns a new string identical to this string except all uppercase letters are converted to their lowercase equivalent.
data values
assignment
polymorphism
String toLowerCase ( )
2. Instance data should be defined with what________ visibility
not possible
encapsulation of an object
private
support methods
3. White space characters such as space characters - tabs - and new lines that separate the elements of input
boolean hasNext( )
delimiters
promotion
data values
4. If a class contains the _________ height - it should also probably contain the methods: getHeight and setHeight
promotion
String toUpperCase ( )
instance variable
inheritance
5. Count++; count--
promotion
delimiters
wrapper class
postfix form
6. Delimited by double quotation characters
string literal
String concat (String str)
assignment conversion
assignment
7. Constructor: creates a new pseudorandom number generator.
Random ( )
wrapper class
floating point numbers
promotion
8. Returns all input remaining on the current line as a character string.
String nextLine( )
variable
String next( )
reserved word void
9. A class usually provides services to access and modify __________
data values
assignment
local data
scope
10. Returns the next input token as a character string.
conditional statement
uninitialized variables
Random ( )
String next( )
11. Returns the next input token as the indicated type.
have void
boolean nextBoolean( )
Scanner useDelimiter(String pattern)
class
12. 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
Understanding
casting
String toLowerCase ( )
prefix form
13. New memory space is reserved for that variable every time an instance of the class that is created.
long
instance data
return statement
called method
14. format for constants: all upper-case; separated by ________
underscores
class
constants
character literal
15. Returns a new string that is identical with this string except that every occurrence of oldChar is replaed by newChar
String replace (char oldChar - char newChar)
operations
autoboxing
scope
16. Boolean type conversions are ___________
static
null
not possible
string name;
17. A name for a location in memory used to hold a data value.
reserved word void
behaviors of an object
variable
boolean nextBoolean( )
18. 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.
formal parameters
assignment conversion
accessor method
method invocation
19. The one that is invoked
method declaration
num=Integer.parseInt(str);
String concat (String str)
called method
20. Begins with a backslash character ""
string name;
escape sequences
long
higher
21. 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
variable declaration
System.out.println
casting
String concat (String str)
22. Eight primitive data types: four subsets of integers - two subsets of ________ - a character data type - and a boolean data type
casting
floating point numbers
reserved word void
static int parseInt (String str)
23. 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
encapsulation
instantiation
boolean nextBoolean( )
variable declaration
24. The only purpose of a private method is to help other methods of the class do their job. they are referred to as _________
support methods
static
String object
int length( )
25. Returns the next input token as the indicated type.
method
long
byte nextByte( )
import java.util*
26. ____________ is instantiated in the traditional way using the new operator.
the DecimalFormat class
public
not possible
String (String str)
27. 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
floating point numbers
import java.util*
private
28. The names of the parameters in the header of the method declaration
instance data
formal parameters
parameter
method invocation
29. _____ expression evaluated first
Random class
RH
uninitialized variables
int length( )
30. 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
a constructor
encapsulation of an object
method
String nextLine( )
31. Elements of input
tokens
class level
class
promotion
32. 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
RH
boolean nextBoolean( )
the DecimalFormat class
33. The fundamental characteristics that currently define the object. for example - part of a bank account's state is its current balance.
character string
String toLowerCase ( )
state of an object
reference
34. A method that returns a value must have a _________
int compareTo (String str)
signed
conditionals
return statement
35. The act of creating an object using the "new" operator
char charAt (int index)
Understanding
dot operator
instantiation
36. ______________ operators have higher precedence
String concat (String str)
packages
arithmetic
set
37. Declared in a class but not inside any particular method
boolean equalsIgnoreCase (String str)
java.lang package
a constructor
instance data
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.
instance data
the "import" declaration
arithmetic
assignment conversion
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
packages
method invocation
parameter
Random ( )
40. An explicit data value used in a program
literal
Scanner useDelimiter(String pattern)
long
behaviors of an object
41. Returns a new string consisting of this string concatenated with str.
boolean equals (String str)
java.lang package
support methods
String object
42. Constructor: creates a new string object with the same characters as str.
underscores
state of an object
String (String str)
not possible
43. Expressed in a Java program with single quotes
System.out.println
character literal
pointer
num=Integer.parseInt(str);
44. 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
pointer
attributes of an object
initialize
instance data
45. Constructors do not even _______; therefore they cannot return a value.
have void
postfix form
parentheses
double
46. Two categories of statements that control the flow of executing through a method: __________ and loops
assignment statement
method
called method
conditionals
47. Variables and constants can be referenced in any method of the class by declaring at the _________
String replace (char oldChar - char newChar)
conditionals
instantiation
class level
48. Changes a particular value - e.g.setX - where X is the value they are setting.
byte nextByte( )
pointer
a constructor
mutator method
49. All numeric types are _______ - meaning both positive and negative values can be stored in them
string literal
String (String str)
conditionals
signed
50. Returns an integer indicating if this string is lexically before - equal to - or lexically after the string str.
constructors
set
int compareTo (String str)
method
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