Tech Talk: Java Quiz

By: Staff

4 Min Quiz

Image: refer to hsw

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?

Java is a computer programming language.

Advertisement

What is the Java development environment?

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?

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?

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?

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?

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"?

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?

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?

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?

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?

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

Advertisement

The act of removing bugs is called:

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?

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 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 (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?

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?

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?

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?

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?

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

Advertisement

Explore More Quizzes

About HowStuffWorks Play

How much do you know about dinosaurs? What is an octane rating? And how do you use a proper noun? Lucky for you, HowStuffWorks Play is here to help. Our award-winning website offers reliable, easy-to-understand explanations about how the world works. From fun quizzes that bring joy to your day, to compelling photography and fascinating lists, HowStuffWorks Play offers something for everyone. Sometimes we explain how stuff works, other times, we ask you, but we’re always exploring in the name of fun! Because learning is fun, so stick with us!