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. Two floating data types: float - _______
aliases
double
parentheses
visibility modifiers
2. An object has behaviors - which are defined by the ________ associated with that object.
boolean nextBoolean( )
parameter
class level
operations
3. All numeric types are _______ - meaning both positive and negative values can be stored in them
signed
the DecimalFormat class
int length( )
self-governing
4. Returns a new string that is a subset of this string starting at index offset and extending through endIndx-1;
String substring (int offset - int endIndex)
NumberFormat class
actual parameters
Scanner useDelimiter(String pattern)
5. ____________ is instantiated in the traditional way using the new operator.
the DecimalFormat class
parameter
Random class
attributes of an object
6. ++count; -- count
prefix form
behaviors of an object
signed
double
7. Represents either a primitive value or an object
variable name
num=Integer.parseInt(str);
java.lang package
String nextLine( )
8. Constants are ______ because the can't be changed once you use the final modifier
higher
arithmetic
called method
public
9. Sets the scanner's delimiting pattern.
Scanner useDelimiter(String pattern)
class library
tokens
RH
10. The one that is invoked
postfix form
String toUpperCase ( )
have void
called method
11. Eight primitive data types: four subsets of integers - two subsets of ________ - a character data type - and a boolean data type
promotion
floating point numbers
byte to short
Random ( )
12. Expressed in a Java program with single quotes
int length( )
wrapper class
String replace (char oldChar - char newChar)
character literal
13. Behaviors associated with a bank account (which include the ability to make deposits and withdrawals)
char charAt (int index)
mutator method
enumerated type
behaviors of an object
14. Returns a new string consisting of this string concatenated with str.
String concat (String str)
String (String str)
constants
String nextLine( )
15. Attempts to find the next occurence of the specified pattern - ignoring delimiters
String findInLine (String pattern)
long
conditional statement
operations
16. 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
variable declaration
not possible
Understanding
character literal
17. A set of classes that supports the development of programs
instance data
class library
String concat (String str)
conditionals
18. Instance data should be defined with what________ visibility
System.out.println
support methods
String concat (String str)
private
19. Provides generic formatting capabilities for numbers; you don't instantiate a NumberFormat object by using the "new" operator.
String nextLine( )
accessor method
Random class
NumberFormat class
20. Every object has two things: a state and a _____ of behaviors
String findInLine (String pattern)
set
string name;
String substring (int offset - int endIndex)
21. Return type specified in the method header can be a primitive type - class name or the ________; when a method does not return any value - void is used as the return type - as is always done with the main method.
support methods
boolean value
reserved word void
parentheses
22. 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.
enumerated type
uninitialized variables
String findInLine (String pattern)
service methods
23. 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
parentheses
String (String str)
service methods
Understanding
24. Returns the int corresponding to the value stored in the specified string
static int parseInt (String str)
reserved word void
int length( )
attributes of an object
25. Includes the type of teh return value - the method name - and the list of parameters that the method accepts.
have void
boolean value
Random class
header of a method
26. All wrapper classes are defined in ___________
class
floating point numbers
java.lang package
String next( )
27. Methods that provide services to the client must be declared with public visibility so that they can be invoked by the client.
variable
conditionals
service methods
called method
28. Allows all classes in the java.util package to be referenced in the program without qualfying each reference.
self-governing
import java.util*
parameter list
accessor method
29. Automatically imported because they are fundamental and can be thought of as basic extensions to the language.
variable declaration
String replace (char oldChar - char newChar)
instance data
java.lang package
30. Returns a new string identical to this string except all uppercase letters are converted to their lowercase equivalent.
pointer
set
assignment conversion
String toLowerCase ( )
31. Two categories of statements that control the flow of executing through a method: __________ and loops
conditionals
parameter list
String next( )
static
32. This declaration creates a Scanner object that reads input from the keyboard
escape sequences
Scanner scan=new Scanner (System.in);
Understanding
NumberFormat class
33. Methods in the Math class are ______
static
class
casting
constants
34. Returns the next input token as a character string.
String next( )
byte to short
tokens
constructors
35. An explicit data value used in a program
wrapper class
java.lang package
set
literal
36. Returns the next input token as the indicated type.
RH
Understanding
byte nextByte( )
boolean equalsIgnoreCase (String str)
37. Specifies the packages and classes that will be used in a program so that the fully qualified name is not necessary with each reference.
method
class level
the "import" declaration
constants
38. The Scanner class is part of ___________________
local data
double
java.util class libary
java.lang package
39. When a variable is declared inside a method
local data
escape sequences
variable name
boolean value
40. 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 -
class
byte nextByte( )
floating point numbers
reserved word void
41. Variables and constants can be referenced in any method of the class by declaring at the _________
class level
string name;
primitive variables
private
42. 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
byte nextByte( )
int compareTo (String str)
parentheses
43. Elements of input
state of an object
conditionals
tokens
java.lang package
44. ______________ operators have higher precedence
packages
actual parameters
flow of control
arithmetic
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
String object
encapsulation of an object
behaviors of an object
flow of control
46. Changes a particular value - e.g.setX - where X is the value they are setting.
mutator method
arithmetic
constants
delimiters
47. The fundamental characteristics that currently define the object. for example - part of a bank account's state is its current balance.
dot operator
state of an object
underscores
java.lang package
48. 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
method
System.out.println
String toLowerCase ( )
encapsulation of an object
49. Returns a new string that is identical with this string except that every occurrence of oldChar is replaed by newChar
int length( )
byte nextByte( )
String (String str)
String replace (char oldChar - char newChar)
50. 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 literal
declared
underscores
string name;
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