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. 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)
postfix form
null
a constructor
2. ______________ operators have higher precedence
arithmetic
underscores
String findInLine (String pattern)
character string
3. The act of creating an object using the "new" operator
boolean equalsIgnoreCase (String str)
variable name
String object
instantiation
4. Only two valid values: true and false; can indicate whether a particular condition is true - but can also be used to represent any situation that has two states - such as a light bulb being on or off
boolean value
string literal
polymorphism
character string
5. The fundamental characteristics that currently define the object. for example - part of a bank account's state is its current balance.
behaviors of an object
tokens
declared
state of an object
6. All numeric types are _______ - meaning both positive and negative values can be stored in them
signed
method
reserved word void
instance data
7. The Scanner class is part of ___________________
conditional statement
inheritance
java.util class libary
boolean value
8. A null reference indicates that a variable does not refer to an object
state of an object
null
service methods
escape sequences
9. 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.
class
String next( )
parameter list
public
10. Provides read-only access to a particular value - e.g. getX where X is the value to which it provides access.
Scanner class
String object
accessor method
java.lang package
11. Begins with a backslash character ""
String next( )
attributes of an object
escape sequences
higher
12. Expressed in a Java program with single quotes
wrapper class
variable name
character literal
the "import" declaration
13. 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
parameter
encapsulation of an object
flow of control
casting
14. After an object has been instantiated - we set the _________ to access its methods
dot operator
byte to short
signed
higher
15. 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
not possible
int compareTo (String str)
String format (double number)
method invocation
16. Changes a particular value - e.g.setX - where X is the value they are setting.
escape sequences
inheritance
mutator method
String (String str)
17. 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.
scope
pointer
RH
num=Integer.parseInt(str);
18. A ________________ is immutable.
String toLowerCase ( )
initialize
escape sequences
String object
19. This declaration creates a Scanner object that reads input from the keyboard
conditional statement
the "import" declaration
class level
Scanner scan=new Scanner (System.in);
20. Specifies the packages and classes that will be used in a program so that the fully qualified name is not necessary with each reference.
have void
assignment
the "import" declaration
instance data
21. Returns the next input token as the indicated type.
polymorphism
expression
byte nextByte( )
state of an object
22. A variable that refers to an object must be __________
declared
called method
variable name
Understanding
23. 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
polymorphism
boolean value
wrapper class
attributes of an object
24. Returns the number of characters in this stirng.
mutator method
conditionals
int length( )
tokens
25. Constructor: creates a new string object with the same characters as str.
String (String str)
String concat (String str)
delimiters
String findInLine (String pattern)
26. 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:
NumberFormat class
num=Integer.parseInt(str);
instance variable
postfix form
27. 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
reference
parameter
parameter list
28. Automatically imported because they are fundamental and can be thought of as basic extensions to the language.
method
casting
java.lang package
Scanner useDelimiter(String pattern)
29. Sets the scanner's delimiting pattern.
public
constants
Scanner useDelimiter(String pattern)
inheritance
30. ++count; -- count
higher
casting
not possible
prefix form
31. 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
java.util class libary
System.out.println
reserved word void
parentheses
32. Declared in a class but not inside any particular method
operations
Scanner useDelimiter(String pattern)
variable declaration
instance data
33. Returns a new string consisting of this string concatenated with str.
boolean equals (String str)
inheritance
Scanner useDelimiter(String pattern)
byte nextByte( )
34. Delimited by double quotation characters
double
instantiation
aliases
string literal
35. 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.
encapsulation
Scanner class
String format (double number)
variable
36. Part of the standard Java class library - provides convenient methods for reading input values of various types. the input can come from various sources - including data typed interactively by the user or data stored in a file; the Scanner class can
int compareTo (String str)
parentheses
Scanner class
boolean value
37. 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.
parentheses
visibility modifiers
parameter
Scanner class
38. Eight primitive data types: four subsets of integers - two subsets of ________ - a character data type - and a boolean data type
conditional statement
floating point numbers
Scanner useDelimiter(String pattern)
int compareTo (String str)
39. Three ways in which Java conversions occur: _________ conversion - promotion - casting
assignment
double
System.out.println
have void
40. If a class contains the _________ height - it should also probably contain the methods: getHeight and setHeight
instance variable
null
scope
formal parameters
41. A set of classes that supports the development of programs
class library
called method
int compareTo (String str)
pointer
42. Constructor: creates a new pseudorandom number generator.
higher
promotion
Random ( )
arithmetic
43. Two floating data types: float - _______
double
import java.util*
boolean equalsIgnoreCase (String str)
String next( )
44. sides=10;
assignment statement
NumberFormat class
delimiters
return statement
45. An object in Java - defined by the class String
operations
parameter
byte nextByte( )
character string
46. Returns all input remaining on the current line as a character string.
encapsulation of an object
Scanner class
constructors
String nextLine( )
47. Provides generic formatting capabilities for numbers; you don't instantiate a NumberFormat object by using the "new" operator.
NumberFormat class
enumerated type
scope
postfix form
48. Modifier>type/void>identifier>parameters>method body
java.lang package
method declaration
declared
wrapper class
49. Allows all classes in the java.util package to be referenced in the program without qualfying each reference.
java.lang package
formal parameters
Random class
import java.util*
50. Constants are ______ because the can't be changed once you use the final modifier
tokens
set
boolean nextBoolean( )
public
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