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. Eight primitive data types: four subsets of integers - two subsets of ________ - a character data type - and a boolean data type
variable declaration
Scanner class
floating point numbers
flow of control
2. Returns the number of characters in this stirng.
postfix form
wrapper class
int length( )
flow of control
3. White space characters such as space characters - tabs - and new lines that separate the elements of input
character literal
actual parameters
delimiters
behaviors of an object
4. Occurs automatically when certain operators need to modify their opeands in order to perform the operation
String format (double number)
encapsulation
String (String str)
promotion
5. A class usually provides services to access and modify __________
boolean value
byte nextByte( )
String format (double number)
data values
6. format for constants: all upper-case; separated by ________
Random ( )
not possible
underscores
static
7. Provides read-only access to a particular value - e.g. getX where X is the value to which it provides access.
accessor method
constructors
boolean equalsIgnoreCase (String str)
string name;
8. This declaration creates a Scanner object that reads input from the keyboard
String nextLine( )
enumerated type
Scanner scan=new Scanner (System.in);
behaviors of an object
9. Delimited by double quotation characters
return statement
inheritance
string literal
literal
10. Changes a particular value - e.g.setX - where X is the value they are setting.
mutator method
num=Integer.parseInt(str);
self-governing
the DecimalFormat class
11. Returns a string containing the specified number formatted according to this object's pattern.
String format (double number)
boolean value
local data
packages
12. Cast operator has _________ precedence to division
String nextLine( )
java.util class libary
reference
higher
13. Examples of Scanner ________: Scanner (InputStream source) - Scanner(File source) - Scanner(String source)
char charAt (int index)
long
constructors
assignment conversion
14. The act of creating an object using the "new" operator
data values
instantiation
attributes of an object
System.out.println
15. Count++; count--
header of a method
string literal
postfix form
higher
16. Returns a new string that is identical with this string except that every occurrence of oldChar is replaed by newChar
wrapper class
String replace (char oldChar - char newChar)
assignment
casting
17. Returns a new string consisting of this string concatenated with str.
boolean equalsIgnoreCase (String str)
boolean equals (String str)
higher
String nextLine( )
18. Methods that provide services to the client must be declared with public visibility so that they can be invoked by the client.
String substring (int offset - int endIndex)
enumerated type
String object
service methods
19. A name for a location in memory used to hold a data value.
promotion
constructors
variable
arithmetic
20. Returns a new string identical to this string except all uppercase letters are converted to their lowercase equivalent.
String toLowerCase ( )
assignment statement
class library
operations
21. A variable that refers to an object must be __________
reserved word void
byte to short
declared
method declaration
22. Methods in the Math class are ______
static
scope
method invocation
declared
23. 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
variable declaration
int length( )
pointer
constructors
24. Two categories of statements that control the flow of executing through a method: __________ and loops
java.util class libary
int compareTo (String str)
String substring (int offset - int endIndex)
conditionals
25. Widening byte: _________ - to int - to long - to float - to double
method
byte to short
wrapper class
instance data
26. Instance data should be defined with what________ visibility
reserved word void
Scanner scan=new Scanner (System.in);
private
enumerated type
27. 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
inheritance
packages
Scanner class
28. Part of the java.util class; picks a number at random out of a range of values.
variable name
Random class
private
attributes of an object
29. The Scanner class is part of ___________________
constructors
java.util class libary
packages
floating point numbers
30. All numeric types are _______ - meaning both positive and negative values can be stored in them
instantiation
signed
autoboxing
not possible
31. Provides generic formatting capabilities for numbers; you don't instantiate a NumberFormat object by using the "new" operator.
not possible
uninitialized variables
floating point numbers
NumberFormat class
32. Boolean type conversions are ___________
floating point numbers
int compareTo (String str)
not possible
character string
33. Automatically imported because they are fundamental and can be thought of as basic extensions to the language.
scope
String replace (char oldChar - char newChar)
java.lang package
floating point numbers
34. 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
int length( )
method
NumberFormat class
expression
35. The classes of the Java standard class library are grouped into __________.
class level
double
packages
String findInLine (String pattern)
36. sides=10;
set
Scanner useDelimiter(String pattern)
assignment statement
instance variable
37. Returns the next input token as the indicated type.
mutator method
enumerated type
operations
boolean nextBoolean( )
38. Returns true if this string contains the same characters as str (without regard to case) and false otherwise.
attributes of an object
Scanner class
initialize
boolean equalsIgnoreCase (String str)
39. 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
called method
string name;
double
byte nextByte( )
40. Each piece of data that we send to a method
formal parameters
method invocation
parameter
escape sequences
41. ______________ operators have higher precedence
support methods
polymorphism
arithmetic
Scanner scan=new Scanner (System.in);
42. 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.
System.out.println
set
enumerated type
support methods
43. If a class contains the _________ height - it should also probably contain the methods: getHeight and setHeight
variable name
support methods
data values
instance variable
44. New memory space is reserved for that variable every time an instance of the class that is created.
support methods
delimiters
instance data
String object
45. The one that is invoked
called method
delimiters
parentheses
enumerated type
46. 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
conditional statement
parameter
variable declaration
encapsulation
47. A value that is passed into a method when it is invoked
private
support methods
byte to short
parameter
48. The only purpose of a private method is to help other methods of the class do their job. they are referred to as _________
constructors
parameter list
support methods
formal parameters
49. Allows all classes in the java.util package to be referenced in the program without qualfying each reference.
casting
import java.util*
boolean hasNext( )
System.out.println
50. 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
String replace (char oldChar - char newChar)
dot operator
parameter list
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