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. ______________ operators have higher precedence
autoboxing
dot operator
data values
arithmetic
2. Automatically imported because they are fundamental and can be thought of as basic extensions to the language.
java.lang package
String toUpperCase ( )
dot operator
signed
3. A value that is passed into a method when it is invoked
formal parameters
parameter
instance data
boolean equalsIgnoreCase (String str)
4. The Scanner class is part of ___________________
not possible
java.util class libary
floating point numbers
instance data
5. 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
parameter
autoboxing
reference
Scanner class
6. Count++; count--
postfix form
conditionals
private
assignment conversion
7. 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
prefix form
casting
string literal
String substring (int offset - int endIndex)
8. The automatic conversion between a primitive value and a corresponding wrapper object.
variable name
autoboxing
System.out.println
byte nextByte( )
9. 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 -
reserved word void
null
class
double
10. 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.
operations
Scanner scan=new Scanner (System.in);
assignment conversion
null
11. Returns a new string consisting of this string concatenated with str.
autoboxing
java.util class libary
instantiation
String concat (String str)
12. The classes of the Java standard class library are grouped into __________.
class level
packages
local data
byte nextByte( )
13. 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.
static int parseInt (String str)
delimiters
visibility modifiers
java.util class libary
14. Includes the type of teh return value - the method name - and the list of parameters that the method accepts.
string name;
accessor method
expression
header of a method
15. Begins with a backslash character ""
escape sequences
null
byte to short
num=Integer.parseInt(str);
16. Attempts to find the next occurence of the specified pattern - ignoring delimiters
data values
pointer
String findInLine (String pattern)
method invocation
17. Methods that provide services to the client must be declared with public visibility so that they can be invoked by the client.
service methods
prefix form
conditionals
tokens
18. Specifies the packages and classes that will be used in a program so that the fully qualified name is not necessary with each reference.
instantiation
the "import" declaration
java.lang package
reserved word void
19. Returns the int corresponding to the value stored in the specified string
static int parseInt (String str)
signed
wrapper class
instance variable
20. The only purpose of a private method is to help other methods of the class do their job. they are referred to as _________
support methods
data values
Scanner class
operations
21. Even though a method may not take parameters - _________ are still necessary to indicate that a method is being invoked
pointer
packages
parentheses
tokens
22. Elements of input
tokens
assignment
scope
method
23. Constants are ______ because the can't be changed once you use the final modifier
behaviors of an object
public
local data
String toUpperCase ( )
24. ++count; -- count
prefix form
floating point numbers
scope
method declaration
25. Returns the character at the specified index.
char charAt (int index)
String toLowerCase ( )
floating point numbers
higher
26. 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.
public
java.util class libary
String object
encapsulation
27. Variables and constants can be referenced in any method of the class by declaring at the _________
class level
uninitialized variables
character string
encapsulation
28. Before you use a variable __________it
method
initialize
method declaration
instantiation
29. The one that is invoked
string name;
called method
postfix form
encapsulation
30. ____________ is instantiated in the traditional way using the new operator.
instance data
String substring (int offset - int endIndex)
Random ( )
the DecimalFormat class
31. All wrapper classes are defined in ___________
java.lang package
string literal
aliases
String next( )
32. Every object has two things: a state and a _____ of behaviors
arithmetic
byte nextByte( )
set
tokens
33. Boolean type conversions are ___________
not possible
import java.util*
inheritance
instance variable
34. 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
assignment conversion
conditional statement
declared
variable declaration
35. They clarify the role a certain number has in the program.
constants
method declaration
String substring (int offset - int endIndex)
postfix form
36. When a variable is declared inside a method
expression
local data
String nextLine( )
long
37. Constructor: creates a new string object with the same characters as str.
private
String findInLine (String pattern)
class
String (String str)
38. Behaviors associated with a bank account (which include the ability to make deposits and withdrawals)
behaviors of an object
private
tokens
String substring (int offset - int endIndex)
39. Variables that don't contain any data
Scanner class
uninitialized variables
signed
String findInLine (String pattern)
40. _____ expression evaluated first
called method
RH
attributes of an object
null
41. 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
actual parameters
attributes of an object
promotion
underscores
42. Constructors do not even _______; therefore they cannot return a value.
method declaration
have void
local data
String toLowerCase ( )
43. Changes a particular value - e.g.setX - where X is the value they are setting.
formal parameters
mutator method
method
actual parameters
44. The act of creating an object using the "new" operator
instantiation
uninitialized variables
char charAt (int index)
boolean nextBoolean( )
45. The fundamental characteristics that currently define the object. for example - part of a bank account's state is its current balance.
floating point numbers
public
state of an object
uninitialized variables
46. A set of classes that supports the development of programs
parameter list
class library
delimiters
java.lang package
47. The idea that we can refer to multiple types of related objects over time in consistent ways. it gives us the ability to design powerful and elegant solutions to problems that deal with multiple objects.
num=Integer.parseInt(str);
conditionals
NumberFormat class
polymorphism
48. Four integer data types: byte - short - int - _____
uninitialized variables
autoboxing
assignment
long
49. 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
uninitialized variables
boolean value
import java.util*
parentheses
50. An explicit data value used in a program
literal
underscores
boolean value
null