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. 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
autoboxing
higher
wrapper class
expression
2. 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
boolean value
variable declaration
arithmetic
wrapper class
3. New memory space is reserved for that variable every time an instance of the class that is created.
parameter list
instance data
class level
java.lang package
4. sides=10;
packages
RH
assignment statement
String substring (int offset - int endIndex)
5. 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:
have void
accessor method
num=Integer.parseInt(str);
variable
6. A name for a location in memory used to hold a data value.
variable
java.util class libary
boolean hasNext( )
String substring (int offset - int endIndex)
7. A ________________ is immutable.
boolean value
String object
pointer
literal
8. The one that is invoked
aliases
called method
long
constants
9. Constructor: creates a new pseudorandom number generator.
String toUpperCase ( )
method invocation
expression
Random ( )
10. Two categories of statements that control the flow of executing through a method: __________ and loops
conditionals
String toLowerCase ( )
mutator method
private
11. They clarify the role a certain number has in the program.
literal
constants
class
set
12. After an object has been instantiated - we set the _________ to access its methods
casting
boolean hasNext( )
dot operator
scope
13. Delimited by double quotation characters
string literal
Scanner scan=new Scanner (System.in);
not possible
String substring (int offset - int endIndex)
14. Three ways in which Java conversions occur: _________ conversion - promotion - casting
assignment
Scanner scan=new Scanner (System.in);
Random class
String replace (char oldChar - char newChar)
15. Eight primitive data types: four subsets of integers - two subsets of ________ - a character data type - and a boolean data type
floating point numbers
expression
Scanner class
class level
16. Elements of input
tokens
int compareTo (String str)
instance data
parentheses
17. 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
Random ( )
inheritance
String nextLine( )
underscores
18. 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
instance data
string name;
encapsulation
NumberFormat class
19. 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
behaviors of an object
java.lang package
Understanding
conditional statement
20. The declarations of object variables have a similar structure to the declaration of _______________
primitive variables
java.util class libary
formal parameters
assignment
21. Automatically imported because they are fundamental and can be thought of as basic extensions to the language.
declared
conditional statement
java.lang package
not possible
22. All numeric types are _______ - meaning both positive and negative values can be stored in them
parameter list
String (String str)
signed
byte nextByte( )
23. 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.
Random ( )
tokens
long
reserved word void
24. Expressed in a Java program with single quotes
character literal
java.util class libary
character string
instantiation
25. 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
String (String str)
pointer
delimiters
operations
26. The Scanner class is part of ___________________
flow of control
operations
java.util class libary
instantiation
27. 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.
encapsulation of an object
double
enumerated type
instance data
28. Returns all input remaining on the current line as a character string.
variable name
method invocation
string name;
String nextLine( )
29. Changes a particular value - e.g.setX - where X is the value they are setting.
set
mutator method
class library
operations
30. Variables that don't contain any data
instance data
variable
uninitialized variables
formal parameters
31. The values passed into a method in an invocation; these are called the arguments to the method
actual parameters
Scanner useDelimiter(String pattern)
String (String str)
byte to short
32. A method that returns a value must have a _________
the DecimalFormat class
return statement
set
the "import" declaration
33. Sets the scanner's delimiting pattern.
reserved word void
String findInLine (String pattern)
Scanner useDelimiter(String pattern)
data values
34. format for constants: all upper-case; separated by ________
set
Scanner scan=new Scanner (System.in);
underscores
constants
35. 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.
instance variable
boolean nextBoolean( )
Random ( )
parameter list
36. Returns a new string identical to this string except all uppercase letters are converted to their lowercase equivalent.
Random ( )
String toLowerCase ( )
reserved word void
java.lang package
37. Methods in the Math class are ______
static
assignment
boolean value
java.lang package
38. Returns true if the scanner has anotehr token in its input.
header of a method
variable name
boolean hasNext( )
delimiters
39. 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.
boolean equals (String str)
local data
assignment statement
visibility modifiers
40. 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.
a constructor
scope
the DecimalFormat class
String toUpperCase ( )
41. 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
String toUpperCase ( )
delimiters
pointer
42. The classes of the Java standard class library are grouped into __________.
self-governing
packages
method
NumberFormat class
43. An explicit data value used in a program
literal
mutator method
support methods
flow of control
44. Returns the number of characters in this stirng.
int length( )
dot operator
support methods
signed
45. ____________ is instantiated in the traditional way using the new operator.
character literal
NumberFormat class
the DecimalFormat class
method invocation
46. An object should be self-governing - meaning that the instance data of an object should be modified only by that object.
String (String str)
NumberFormat class
self-governing
have void
47. Returns a new string consisting of this string concatenated with str.
boolean hasNext( )
variable declaration
String concat (String str)
String nextLine( )
48. 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
casting
assignment conversion
polymorphism
instance variable
49. Methods that provide services to the client must be declared with public visibility so that they can be invoked by the client.
character string
service methods
escape sequences
declared
50. Attempts to find the next occurence of the specified pattern - ignoring delimiters
string name;
String format (double number)
Random class
String findInLine (String pattern)
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