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. Allows us to invoke more than one servlet in sequence when the URL is opened with a common servlet alias.
Servlet Aliasing
package
if
public
2. 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
throw
Servlet Aliasing
MVC Architecture
do
3. Indicates that a value is an 8-bit whole number.
byte
double
long
finally
4. Indicates that a value is a 32-bit whole number.
int
finally
do
Java Applet Definition
5. 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.
Servlet workings
goto
long
this
6. Jumps out of a loop or switch.
Servlet Chaining
for
Include Directive element
break
7. CRUD: Create - Retrieve - ________ - Delete
strictfp
JAR (Java Archive)
Update
throw
8. Indicates that a variable or method belongs to a class rather than to any object created from the class.
static
Java Native Interface
double precision
do
9. A technology that provides distributed persistence and data exchange mechanisms for code in Java.
finally
jsp:include Action element (with jsp:param)
JavaSpaces
short
10. A software "execution engine" that safely and compatibly executes the byte codes in Java class files on a microprocessor (whether in a computer or in another electronic device).
switch
Java Applet Definition
byte
Java virtual machine
11. Indicates that a value is either true or false in the Java sense.
boolean
public
throws
abstract
12. Used to terminate the execution of the current JSP page and switch control to another resource
boolean
Java Applet Definition
jsp:forware Action element (with jsp:param)
JDK (Java Development Kit)
13. Basic code block of a JSP page
Java Media Framework
Scriptlets
Declarations
OTS (Object Transaction Service)
14. Keeps two threads from interfering with one another.
package
const
synchronized
Expressions
15. Indicates that if and when an object is serialized a variable's value doesn't need to be stored.
CORBA
package
transient
import
16. A principal native to the operating system on which the Java platform is executing.
OS principal
CORBA
boolean
char
17. Servlet is: loaded by servlet container when 1st requested; is then forwarded the user's request; processes the user's request; returns the response back to the servlet container. Servlet container sends this response back to the user. Servlet stays
Servlet workings
new
const
continue
18. Introduces a path of execution to take when no case is a match in a switch statement.
POA (Portable Object Adapter)
implements
default
Java Media APIs
19. Forces the abrupt end of the current loop iteration and begins another iteration.
continue
Java Applet Definition
final
javax.servlet.http.*
20. Indicates that a variable's value cannot be changed - that a class's functionality cannot be extended or that a method cannot be overridden.
JAR (Java Archive)
transient
strictfp
final
21. Repeats some statements over and over again (as long as a condition is still true).
private
while
JSP
finally
22. Enables the programmer to use code that was written in another language (one of those awful languages other than Java).
else
protected
char
native
23. Indicates that a method or constructor may pass the buck when an exception is thrown.
const
throws
super
JavaSpaces
24. Tests to see whether a certain object comes from a certain class.
Java Runtime Environment (JRE)
JSP
instanceof
float
25. Puts the code into a package
wrapper class
package
Java Database Connectivity (JDBC)
Java Media APIs
26. Similar to the include Directive but can pass information to the included resource
catch
jsp:include Action element (with jsp:param)
OS principal
Servlet Chaining
27. A portable platform-independent reusable component model. A component that conforms to this model is called a bean.
float
protected
JavaSafe
JavaBeans
28. A Web scripting language that is used in both browsers and Web servers. Like all scripting languages it is used primarily to tie other components together or to accept user input.
CORBA
JavaScript
for
package
29. 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 const variable.
JSP
double
const
Java Native Interface
30. Indicates that a variable or class or method can be used by any other Java code.
else
int
public
Jini Technology
31. Causes the computer to repeat some statements over and over again (for instance as long as the computer keeps getting unacceptable results).
do
Servlet container
jsp:include Action element (with jsp:param)
Update
32. Tells the computer to follow one of many possible paths of execution (one of many possible cases) depending on the value of an expression.
enum
switch
Update
strictfp
33. Creates a new exception object and indicates that an exceptional situation (usually something unwanted) has occurred.
Servlet Aliasing
if
throw
Page-centric architecture
34. Indicates that the details of a class or a method or an interface are given elsewhere in the code.
static
else
abstract
goto
35. A distributed object model for Java program to Java program in which the methods of remote objects written in the Java programming language can be invoked from other Java virtual machines1 - possibly on different hosts.
long
extends
super
Java Remote Method Invocation (RMI)
36. A description of the structure and properties of a class of XML files.
enum
default
DTD (Document Type Definition)
implements
37. Introduces statements that are executed when the condition in an if statement isn't true.
short
else
catch
OTS (Object Transaction Service)
38. Indicates that a variable or method can be used only within a certain class.
private
Java Compatibility Kit (JCK)
class
ORB (Object Request Broker)
39. Introduces a class
new
class
JSP
Semaphore
40. 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.
for
Jini Technology
const
Java Development Kit (JDK)
41. A tool for tracking and managing source file changes - written in Java.
Java Compatibility Kit (JCK)
JavaSafe
synchronized
switch
42. A test suite - a set of tools and other requirements used to certify a Java platform implementation conformant both to the applicable Java platform specifications and to Java Software reference implementations.
JavaSafe
Java Compatibility Kit (JCK)
finally
extends
43. 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
Java Applet Definition
jsp:include Action element (with jsp:param)
JAR (Java Archive)
44. Sets attributes and properties specific to the current JSP page
Java Naming and Directory Interface (JNDI)
static
Page Directive element
Java Platform
45. A definition of the interfaces that permit CORBA objects to participate in transactions.
jsp:plugin (uses jsp:params and jsp:fallback)
OTS (Object Transaction Service)
assert
CORBA
46. A special Java servlet-aware web server process.
transient
return
wrapper class
Servlet container
47. 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.
Java Runtime Environment (JRE)
byte
package
Page Directive element
48. A library than enables CORBA objects to locate and communicate with one another.
throw
static
synchronized
ORB (Object Request Broker)
49. 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
switch
enum
Java Applet Definition
public
50. A CORBA standard for building server-side applications that are portable across heterogeneous ORBs.
this
POA (Portable Object Adapter)
public
native