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. 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
Scanner scan=new Scanner (System.in);
assignment statement
import java.util*
2. Returns true if this string contains the same characters as str (without regard to case) and false otherwise.
Scanner class
local data
a constructor
boolean equalsIgnoreCase (String str)
3. An object has behaviors - which are defined by the ________ associated with that object.
operations
promotion
parameter
Scanner useDelimiter(String pattern)
4. Delimited by double quotation characters
RH
string literal
wrapper class
String next( )
5. Returns a new string consisting of this string concatenated with str.
arithmetic
boolean equals (String str)
instance data
int length( )
6. 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
String concat (String str)
string name;
actual parameters
7. The values passed into a method in an invocation; these are called the arguments to the method
promotion
string literal
variable declaration
actual parameters
8. The order in which statements are executed in a running program
signed
flow of control
reserved word void
enumerated type
9. Automatically imported because they are fundamental and can be thought of as basic extensions to the language.
set
operations
java.lang package
String replace (char oldChar - char newChar)
10. We use an object when we have a _________ to it
actual parameters
reference
null
have void
11. Count++; count--
postfix form
assignment conversion
byte to short
assignment statement
12. Variables that don't contain any data
wrapper class
uninitialized variables
packages
floating point numbers
13. Each piece of data that we send to a method
parameter
aliases
scope
Understanding
14. Sets the scanner's delimiting pattern.
Scanner useDelimiter(String pattern)
private
expression
declared
15. Methods that provide services to the client must be declared with public visibility so that they can be invoked by the client.
parameter
service methods
reference
not possible
16. Occurs automatically when certain operators need to modify their opeands in order to perform the operation
promotion
floating point numbers
instance variable
formal parameters
17. Instance data should be defined with what________ visibility
tokens
boolean value
import java.util*
private
18. The names of the parameters in the header of the method declaration
String (String str)
promotion
formal parameters
character literal
19. Attempts to find the next occurence of the specified pattern - ignoring delimiters
accessor method
byte to short
java.util class libary
String findInLine (String pattern)
20. Includes the type of teh return value - the method name - and the list of parameters that the method accepts.
Random class
Scanner scan=new Scanner (System.in);
header of a method
RH
21. Changes a particular value - e.g.setX - where X is the value they are setting.
assignment
mutator method
prefix form
variable name
22. The fundamental characteristics that currently define the object. for example - part of a bank account's state is its current balance.
parentheses
literal
state of an object
header of a method
23. Declared in a class but not inside any particular method
pointer
instance data
Understanding
reference
24. 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
java.util class libary
reference
boolean value
Random ( )
25. 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.
String format (double number)
double
String (String str)
scope
26. Every object has two things: a state and a _____ of behaviors
parameter
String object
local data
set
27. Eight primitive data types: four subsets of integers - two subsets of ________ - a character data type - and a boolean data type
not possible
parentheses
boolean equalsIgnoreCase (String str)
floating point numbers
28. A method that returns a value must have a _________
return statement
inheritance
constructors
behaviors of an object
29. Examples of Scanner ________: Scanner (InputStream source) - Scanner(File source) - Scanner(String source)
String findInLine (String pattern)
class library
java.util class libary
constructors
30. ______________ operators have higher precedence
static
instance data
declared
arithmetic
31. 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.
parameter
byte nextByte( )
RH
parameter list
32. Provides generic formatting capabilities for numbers; you don't instantiate a NumberFormat object by using the "new" operator.
NumberFormat class
double
string literal
enumerated type
33. ++count; -- count
string literal
dot operator
scope
prefix form
34. Behaviors associated with a bank account (which include the ability to make deposits and withdrawals)
behaviors of an object
higher
prefix form
parameter
35. If a class contains the _________ height - it should also probably contain the methods: getHeight and setHeight
character literal
String toLowerCase ( )
String nextLine( )
instance variable
36. 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
inheritance
arithmetic
encapsulation of an object
constructors
37. Returns the int corresponding to the value stored in the specified string
parameter
inheritance
static int parseInt (String str)
method declaration
38. Even though a method may not take parameters - _________ are still necessary to indicate that a method is being invoked
parentheses
character string
local data
postfix form
39. A special method that has the same name as the class. After the "new" operator creates the object it is invoked to help set it up initially
Random class
enumerated type
formal parameters
a constructor
40. 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.
System.out.println
import java.util*
the "import" declaration
visibility modifiers
41. Two floating data types: float - _______
double
NumberFormat class
postfix form
instance data
42. 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 name;
self-governing
String toUpperCase ( )
java.lang package
43. Returns the next input token as a character string.
java.lang package
prefix form
String concat (String str)
String next( )
44. Expressed in a Java program with single quotes
support methods
floating point numbers
inheritance
character literal
45. A variable that refers to an object must be __________
instance variable
declared
String replace (char oldChar - char newChar)
tokens
46. format for constants: all upper-case; separated by ________
literal
expression
underscores
instance variable
47. 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
Scanner class
import java.util*
local data
uninitialized variables
48. A ________________ is immutable.
self-governing
String next( )
String object
aliases
49. Part of the java.util class; picks a number at random out of a range of values.
parentheses
Random class
escape sequences
actual parameters
50. Allows all classes in the java.util package to be referenced in the program without qualfying each reference.
double
formal parameters
import java.util*
enumerated type
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