SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
|
Email
Search
Test your basic knowledge |
Java Programming Basics
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. Indicates that a method doesn't return a value.
double
void
byte
volatile
2. Enables the programmer to abbreviate the names of classes defined in a package.
JavaSpaces
long
import
this
3. Introduces an interface which is like a class but less specific.
JavaBeans
Servlet
interface
default
4. A Java class that can be loaded into and run dynamically in a Servlet container on a web server; interact with web clients via a request-response model based on HTTP.
jsp:forware Action element (with jsp:param)
Servlet
Servlet container
protected
5. A software development environment for writing applets and applications in the Java programming language. Technically - the JDK is the correct name for all versions of the Java platform from 1.0 to 1.1.x.
JavaSafe
this
Java Development Kit (JDK)
javax.servlet.http.*
6. Tests to see whether a condition is true. If it's true the computer executes certain statements; otherwise the computer executes other statements.
return
protected
else
if
7. Introduces the last will and testament of the statements in a try clause.
javax.servlet.http.*
goto
finally
JSP
8. CRUD: Create - Retrieve - ________ - Delete
return
Update
Java Media Framework
transient
9. Indicates that a value is either true or false in the Java sense.
this
float
boolean
jsp:plugin (uses jsp:params and jsp:fallback)
10. Allows us to invoke more than one servlet in sequence when the URL is opened with a common servlet alias.
Declarations
Java Media Framework
Servlet Aliasing
Include Directive element
11. A subset of the Java Development Kit (JDK) for end-users and developers who want to redistribute the runtime environment alone. The Java runtime environment consists of the Java virtual machine1 - the Java core classes and supporting files.
float
continue
JavaBeans
Java Runtime Environment (JRE)
12. An extension that adds graphical user interface class libraries to the Abstract Windowing Toolkit (AWT).
Java Development Kit (JDK)
Java Foundation Classes (JFC)
public
byte
13. Indicates that a variable's value cannot be changed - that a class's functionality cannot be extended or that a method cannot be overridden.
try
continue
final
JavaBeans
14. In the Java programming language specification - describes a floating point number that holds 64 bits of data. See also single precision.
extends
double precision
break
Scriptlets
15. You can't use this word in a Java program. The word has no meaning. Because it's a keyword you can't create a goto variable.
catch
goto
Java Remote Method Invocation (RMI)
Java Naming and Directory Interface (JNDI)
16. Two Servlet API packages: javax.servlet.* ___________
Tag Library Directive element
strictfp
javax.servlet.http.*
int
17. Creates a newly defined type
enum
Java Platform
do
IIOP (Internet Inter-ORB Protocol)
18. Consists of class libraries - a Java virtual machine (JVM) and class loader (which comprise the runtime environment) and a compiler - debugger and other tools (which comprise the development kit).
JavaScript
transient
synchronized
Java Platform
19. This separates the content presentation (View) from the underlying business operations/content generation (Model) using infrastructure/controller Servlet (Controller) which exists between the client browser and the JSP/Servlet-generated pages. Contro
super
float
do
MVC Architecture
20. Indicates that a variable or method can be used only within a certain class.
Update
private
switch
JavaSpaces
21. Tests the truth of a condition that the programmer believes is true.
long
Page Directive element
instanceof
assert
22. Enables the programmer to use code that was written in another language (one of those awful languages other than Java).
native
Java virtual machine
implements
wrapper class
23. Indicates that a value is a 64-bit whole number.
javax.servlet.http.*
long
Java Runtime Environment (JRE)
JSP Beans
24. Introduces statements that are executed when something interrupts the flow of execution in a try clause.
if
const
private
catch
25. A tool for tracking and managing source file changes - written in Java.
void
JavaSafe
char
goto
26. Puts the code into a package
switch
package
do
protected
27. Indicates that a variable or method belongs to a class rather than to any object created from the class.
Jini Technology
Java Applet Definition
Servlet Chaining
static
28. Introduces one of several possible paths of execution in a switch statement.
byte
case
if
CORBA
29. A protocol used for communication between CORBA object request brokers.
abstract
interface
Java Platform
IIOP (Internet Inter-ORB Protocol)
30. A lock that can be counted - i.e. how many times a resouce has been accessed and locked
Semaphore
int
interface
Java virtual machine
31. Sets attributes and properties specific to the current JSP page
ORB (Object Request Broker)
Page Directive element
Java Foundation Classes (JFC)
while
32. Indicates that a variable or method can be used in subclasses from another package.
ORB (Object Request Broker)
Update
protected
Tag Library Directive element
33. A platform-independent file format that aggregates many files into one. Multiple applets written in the Java programming language and their requisite components (.class files & images & sounds and other resource files) can be bundled in a JAR file an
JAR (Java Archive)
break
super
if
34. Indicates that the details of a class or a method or an interface are given elsewhere in the code.
MVC Architecture
Java Remote Method Invocation (RMI)
abstract
JavaSpaces
35. Keeps two threads from interfering with one another.
Java Runtime Environment (JRE)
Servlet workings
native
synchronized
36. A standard programming interface for writing Java native methods and embedding the JVM into native applications. The primary goal is binary compatibility of native method libraries across all JVM implementations on a given platform.
Java Native Interface
IIOP (Internet Inter-ORB Protocol)
Java Remote Method Invocation (RMI)
float
37. Creates an object from an existing class.
if
new
throw
default
38. A set of Java APIs that may be incorporated an optional package for any Java 2 Platform Edition. The Jini APIs enable transparent networking of devices and services and eliminates the need for system or network administration intervention by a user.
break
Include Directive element
transient
Jini Technology
39. Common Object Request Broker Architecture. A language independent distributed object model specified by the Object Management Group (OMG).
Java Interface Definition Language (IDL)
CORBA
Java Native Interface
instanceof
40. A self-reference
protected
Java Database Connectivity (JDBC)
JSP Beans
this
41. A technology that provides distributed persistence and data exchange mechanisms for code in Java.
const
continue
JavaBeans
JavaSpaces
42. An industry standard for database-independent connectivity between the Java platform and a wide range of databases. The JDBC provides a call-level API for SQL-based database access.
JDK (Java Development Kit)
Java Media APIs
static
Java Database Connectivity (JDBC)
43. A class that wraps primitives - Integer or Boolean...
static
OTS (Object Transaction Service)
Declarations
wrapper class
44. A library than enables CORBA objects to locate and communicate with one another.
ORB (Object Request Broker)
strictfp
JSP
const
45. Type of Java program (as opposed to a stand-alone program) which is embedded in a web page (requested from a server) and run on a client-side browser
Java Interface Definition Language (IDL)
Java Applet Definition
return
if
46. Indicates that a value is a 64-bit number with one or more digits after the decimal point.
JBossn
double
JavaCheck
new
47. A definition of the interfaces that permit CORBA objects to participate in transactions.
Expressions
OTS (Object Transaction Service)
JDK (Java Development Kit)
Include Directive element
48. Indicates that a value is a character (a single letter or digit or punctuation symbol and so on) stored in 16 bits of memory.
IIOP (Internet Inter-ORB Protocol)
char
Include Directive element
byte
49. A set of Java APIs that provide CORBA (Common Object Request Broker Architecture) interoperability and connectivity capabilities for the J2EE platform. These capabilities enable J2EE applications to invoke operations on remote network services using
assert
Java Interface Definition Language (IDL)
float
short
50. A CORBA standard for building server-side applications that are portable across heterogeneous ORBs.
JDK (Java Development Kit)
Java virtual machine
Java Applet Definition
POA (Portable Object Adapter)