Tech Talk: Java Quiz

Estimated Completion Time
2 min
Tech Talk: Java Quiz
Image: imagenavi/Getty Images

About This Quiz

Java is a popular programming language that's relatively easy to use. Are you a programming guru or a novice? Take our quiz to find out.
Let’s start with an easy one! What is Java?
a strong cup of Joe
computer programming language
an energy corporation
Correct Answer
Wrong Answer

Java is a computer programming language.

Advertisement

What is the Java development environment?
Sun Microsystems headquarters
a customized, partitioned hard drive
a software development kit
Correct Answer
Wrong Answer

The Java development environment is a special software development kit that lets you construct a Java program within a virtual test environment.

Advertisement

What is an applet?
a small apple
a simple computer application
a Java-specific program
Correct Answer
Wrong Answer

Applets are simple computer programs that perform specific tasks and don't require hefty computer resources.

Advertisement

When programming in Java, which of the following must you keep in mind?
Java can handle parentheses, but not brackets
Java doesn't recognize spaces
case matters
Correct Answer
Wrong Answer

When you create a program using the Java language, remember that it matters what case you use. Java differentiates between lower and upper case letters -- and you can't substitute one for the other.

Advertisement

What's the extension for a compiled Java file?
.class
.java
.xml
Correct Answer
Wrong Answer

Once a Java file goes through a compiler and becomes readable by machines, it gains the .class file extension.

Advertisement

What kind of programming language is Java?
an object-oriented programming language
an array programming language
a logic programming language
Correct Answer
Wrong Answer

Java is an object-oriented programming language, meaning it focuses on objects (software). Each object has its own state and behavior.

Advertisement

What's another word for the programming term "method"?
theme
function
madness
Correct Answer
Wrong Answer

In Java, a method is a function, or particular behavior, of an object.

Advertisement

What's the common term for an error within a computer program's code that prevents it from functioning properly?
a glitch
a hack
a bug
Correct Answer
Wrong Answer

Bugs are code mistakes that cause computer programs to behave in weird ways or to not work at all. Removing bugs is called debugging.

Advertisement

What's another name for an execution error?
sysfail
run-time error
noncompile error
Correct Answer
Wrong Answer

Execution, or run-time, errors refer to the kind of bug that produces an unexpected (and unintended) result when you run your program.

Advertisement

What is a variable?
an unpredictable element in a Java program
a program that can run fast or slow depending on user input
a way to hold data temporarily in a program
Correct Answer
Wrong Answer

Variables hold pieces of data temporarily. For example, a program might ask for a user's name when it first executes. The user name is temporarily stored as a variable and the program may refer back to that data until the user ends the program.

Advertisement

What is the name for an application that changes a human-readable programming language into a machine-readable language?
compiler
converter
encoder
Correct Answer
Wrong Answer

Compilers translate programs from a human-readable format into a machine-readable one.

Advertisement

The act of removing bugs is called:
exterminating
proofing
debugging
Correct Answer
Wrong Answer

Problems in your Java code could prevent the program from running correctly; debugging the code removes those errors.

Advertisement

Which of the following is NOT a type of variable in Java?
simple variables
classes
integers
Correct Answer
Wrong Answer

There are two types of variables in Java — simple, or primitive, variables and classes.

Advertisement

About how much time is devoted to debugging while programming?
about 50 percent of the time of programming
about 10 percent of the time of programming
about 25 percent of the time of programming
Correct Answer
Wrong Answer

About half of the time a programmer spends on a program will be devoted to debugging.

Advertisement

Which of the following simple computer programs is needed in order to write a computer program?
Notepad
Paint
Calculator
Correct Answer
Wrong Answer

Notepad (or any text editor that can create TXT files) is needed when developing a Java program.

Advertisement

Which of the following is NOT an example of another computer programming language?
C++
Basic
Soliloquy
Correct Answer
Wrong Answer

While there are many computer programming languages, Soliloquy isn’t one.

Advertisement

What other programming language do you need to be familiar with to view your Java program?
CSS
Java
HTML
Correct Answer
Wrong Answer

HTML is needed to house the Java program. The HTML page is opened in the browser.

Advertisement

Those EXE files on your computer contain machine-readable programs translated from human-readable programs called what?
executables
exertives
exempts
Correct Answer
Wrong Answer

These EXE files are the output of compilers and contain executables.

Advertisement

What is it called when the code is written to perform repetitive operations?
cycling
looping
booming
Correct Answer
Wrong Answer

In Java programming, you can use a “while” statement to cause your code to loop or repeat.

Advertisement

What function does the semicolon serve in the Java programming language?
A page break.
It acts like the period at the end of the sentence.
It isn’t recognized.
Correct Answer
Wrong Answer

The semicolon serves as a stopping point, just like a period at the end of a sentence.

Advertisement

You Got:
/20
imagenavi/Getty Images