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. Also called a selection statement b/c it allows us to choose which statement will be executed next.
java.util class libary
conditional statement
static
declared
2. Count++; count--
parameter
wrapper class
postfix form
variable
3. 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
byte nextByte( )
attributes of an object
behaviors of an object
4. An object in Java - defined by the class String
character string
self-governing
instantiation
formal parameters
5. 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.
initialize
Random ( )
java.lang package
parameter list
6. 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
not possible
primitive variables
expression
higher
7. Cast operator has _________ precedence to division
assignment
primitive variables
higher
private
8. 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
boolean equals (String str)
casting
inheritance
header of a method
9. White space characters such as space characters - tabs - and new lines that separate the elements of input
static int parseInt (String str)
String toLowerCase ( )
delimiters
String object
10. The location at which a variable is declared defines its scope - which is the area within a program in which the variable can be referenced.
char charAt (int index)
casting
scope
signed
11. 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
aliases
char charAt (int index)
promotion
string name;
12. Expressed in a Java program with single quotes
mutator method
underscores
return statement
character literal
13. Boolean type conversions are ___________
declared
flow of control
not possible
static
14. Two floating data types: float - _______
double
arithmetic
private
set
15. Four integer data types: byte - short - int - _____
parameter list
long
class level
instance data
16. 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 -
System.out.println
class
String toLowerCase ( )
String toUpperCase ( )
17. An object has behaviors - which are defined by the ________ associated with that object.
constants
not possible
prefix form
operations
18. Eight primitive data types: four subsets of integers - two subsets of ________ - a character data type - and a boolean data type
instantiation
floating point numbers
int length( )
signed
19. The Scanner class is part of ___________________
boolean equalsIgnoreCase (String str)
java.util class libary
assignment
scope
20. When two variables contain the same address and therefore refer to the same object; one important implication of _________ is that when we use one ref to change an object - it is also changed for the other reference because there is really only one o
assignment
postfix form
arithmetic
aliases
21. ______________ operators have higher precedence
conditionals
constants
encapsulation
arithmetic
22. All numeric types are _______ - meaning both positive and negative values can be stored in them
parentheses
boolean nextBoolean( )
signed
class
23. 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
System.out.println
static
literal
boolean hasNext( )
24. sides=10;
encapsulation of an object
underscores
prefix form
assignment statement
25. 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.
double
RH
reserved word void
character literal
26. Returns an integer indicating if this string is lexically before - equal to - or lexically after the string str.
mutator method
declared
java.lang package
int compareTo (String str)
27. After an object has been instantiated - we set the _________ to access its methods
dot operator
parentheses
assignment statement
pointer
28. Methods that provide services to the client must be declared with public visibility so that they can be invoked by the client.
class level
service methods
a constructor
visibility modifiers
29. Widening byte: _________ - to int - to long - to float - to double
static
class library
byte to short
character literal
30. Provides read-only access to a particular value - e.g. getX where X is the value to which it provides access.
accessor method
conditional statement
dot operator
enumerated type
31. 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.
accessor method
character literal
encapsulation
String replace (char oldChar - char newChar)
32. Returns the next input token as the indicated type.
byte nextByte( )
escape sequences
long
boolean value
33. 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.
Scanner useDelimiter(String pattern)
return statement
double
visibility modifiers
34. Constructors do not even _______; therefore they cannot return a value.
have void
attributes of an object
byte to short
class level
35. 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.
assignment conversion
RH
String findInLine (String pattern)
class level
36. ++count; -- count
literal
prefix form
data values
behaviors of an object
37. 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
method invocation
int length( )
static
higher
38. Returns a new string that is a subset of this string starting at index offset and extending through endIndx-1;
String concat (String str)
import java.util*
String nextLine( )
String substring (int offset - int endIndex)
39. Constructor: creates a new string object with the same characters as str.
String nextLine( )
String (String str)
boolean value
attributes of an object
40. 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
boolean equals (String str)
attributes of an object
header of a method
String concat (String str)
41. The one that is invoked
long
double
called method
initialize
42. A set of classes that supports the development of programs
class library
Random ( )
String next( )
primitive variables
43. The declarations of object variables have a similar structure to the declaration of _______________
assignment conversion
higher
primitive variables
arithmetic
44. Returns the next input token as the indicated type.
not possible
tokens
boolean nextBoolean( )
character string
45. Every object has two things: a state and a _____ of behaviors
set
character literal
Scanner scan=new Scanner (System.in);
instance data
46. 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
instance variable
the "import" declaration
autoboxing
47. Returns a new string identical to this string except all lowercase letters are converted to their uppercase equivalent.
java.util class libary
not possible
set
String toUpperCase ( )
48. A null reference indicates that a variable does not refer to an object
null
operations
class level
underscores
49. Variables that don't contain any data
declared
reserved word void
String nextLine( )
uninitialized variables
50. Returns the next input token as a character string.
reserved word void
String next( )
postfix form
wrapper class
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