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. Variables that don't contain any data
Scanner scan=new Scanner (System.in);
public
uninitialized variables
boolean nextBoolean( )
2. Returns the next input token as the indicated type.
parameter
initialize
dot operator
boolean nextBoolean( )
3. Count++; count--
encapsulation
scope
assignment statement
postfix form
4. 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
class level
reserved word void
wrapper class
pointer
5. Constructor: creates a new pseudorandom number generator.
promotion
assignment conversion
tokens
Random ( )
6. 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
Random class
method
service methods
declared
7. 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.
String nextLine( )
polymorphism
num=Integer.parseInt(str);
character string
8. 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.
instance data
int length( )
assignment conversion
String nextLine( )
9. Two categories of statements that control the flow of executing through a method: __________ and loops
primitive variables
set
conditionals
header of a method
10. They clarify the role a certain number has in the program.
String concat (String str)
escape sequences
constants
String toLowerCase ( )
11. Behaviors associated with a bank account (which include the ability to make deposits and withdrawals)
boolean equalsIgnoreCase (String str)
character literal
visibility modifiers
behaviors of an object
12. Two floating data types: float - _______
set
instance variable
double
autoboxing
13. Returns a new string consisting of this string concatenated with str.
boolean equals (String str)
import java.util*
local data
String object
14. When a variable is declared inside a method
string literal
local data
support methods
flow of control
15. Four integer data types: byte - short - int - _____
Scanner scan=new Scanner (System.in);
local data
set
long
16. After an object has been instantiated - we set the _________ to access its methods
prefix form
conditional statement
instance data
dot operator
17. Represents either a primitive value or an object
Scanner scan=new Scanner (System.in);
long
java.lang package
variable name
18. The automatic conversion between a primitive value and a corresponding wrapper object.
self-governing
boolean hasNext( )
assignment conversion
autoboxing
19. 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
RH
string name;
private
method declaration
20. Returns a string containing the specified number formatted according to this object's pattern.
String format (double number)
instantiation
parameter
primitive variables
21. Eight primitive data types: four subsets of integers - two subsets of ________ - a character data type - and a boolean data type
floating point numbers
String replace (char oldChar - char newChar)
string literal
conditional statement
22. All numeric types are _______ - meaning both positive and negative values can be stored in them
Scanner useDelimiter(String pattern)
local data
method
signed
23. Returns the int corresponding to the value stored in the specified string
actual parameters
state of an object
static int parseInt (String str)
packages
24. Returns a new string identical to this string except all uppercase letters are converted to their lowercase equivalent.
java.util class libary
the DecimalFormat class
initialize
String toLowerCase ( )
25. sides=10;
the DecimalFormat class
String nextLine( )
signed
assignment statement
26. An object has behaviors - which are defined by the ________ associated with that object.
class library
uninitialized variables
String format (double number)
operations
27. Instance data should be defined with what________ visibility
return statement
literal
private
pointer
28. Returns the number of characters in this stirng.
String toLowerCase ( )
int length( )
arithmetic
instantiation
29. Methods in the Math class are ______
called method
attributes of an object
static
RH
30. A combo of one or more operators and operands that usually perform a calculation; operands can be literals - constants - variables - or other sources of data
signed
primitive variables
method
expression
31. ____________ is instantiated in the traditional way using the new operator.
the DecimalFormat class
parentheses
a constructor
packages
32. This declaration creates a Scanner object that reads input from the keyboard
Random class
header of a method
Scanner scan=new Scanner (System.in);
behaviors of an object
33. Elements of input
tokens
prefix form
state of an object
the DecimalFormat class
34. Methods that provide services to the client must be declared with public visibility so that they can be invoked by the client.
byte nextByte( )
character string
mutator method
service methods
35. Automatically imported because they are fundamental and can be thought of as basic extensions to the language.
java.lang package
static int parseInt (String str)
dot operator
reference
36. 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
parameter list
attributes of an object
double
support methods
37. Making it difficult - if not impossible - for code outside of a class to "reach in" and chnage the value of a variable that is declared inside that class.
assignment statement
constants
encapsulation
have void
38. 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
support methods
parameter list
num=Integer.parseInt(str);
wrapper class
39. New memory space is reserved for that variable every time an instance of the class that is created.
delimiters
character string
instance data
polymorphism
40. Each piece of data that we send to a method
constructors
parameter
Scanner class
dot operator
41. Also called a selection statement b/c it allows us to choose which statement will be executed next.
conditional statement
accessor method
java.lang package
support methods
42. 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
return statement
header of a method
mutator method
method invocation
43. The order in which statements are executed in a running program
inheritance
flow of control
reserved word void
parentheses
44. A ________________ is immutable.
packages
char charAt (int index)
String object
postfix form
45. A set of classes that supports the development of programs
class library
java.util class libary
assignment statement
string name;
46. 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
boolean value
reference
System.out.println
variable
47. 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 -
called method
floating point numbers
wrapper class
class
48. The one that is invoked
reserved word void
boolean equals (String str)
called method
String findInLine (String pattern)
49. Control access to the members of a class. the reserved words public and private are visibility modifiers that can be applied to the variables and methods of a class.
string literal
set
visibility modifiers
polymorphism
50. Constructors do not even _______; therefore they cannot return a value.
have void
scope
variable declaration
dot operator
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