Java: If Statements


Choose an answer and hit 'next'. You will receive your score and answers at the end.

question 1 of 3

What will the output be of this expression if the variable x = 13?

Create Your Account To Take This Quiz

As a member, you'll also get unlimited access to over 79,000 lessons in math, English, science, history, and more. Plus, get practice tests, quizzes, and personalized coaching to help you succeed.

Try it risk-free
Try it risk-free for 30 days. Cancel anytime
Already registered? Log in here for access

1. The Java if statement:

2. A Java application should always have three things. Which of these isn't one of them?

Create your account to access this entire worksheet
A Premium account gives you access to all lesson, practice exams, quizzes & worksheets
Access to all video lessons
Quizzes, practice exams & worksheets
Certificate of Completion
Access to instructors
Create an account to get started Create Account

About This Quiz & Worksheet

The Java computer language allows for a specific type of application programming, and this quiz will ascertain what you know concerning Java conditional statements. Questions on the quiz will focus on the conceptual applications of these types of statements, so you will need to understand how different variables affect the outcomes of these statements.

Quiz & Worksheet Goals

Use these assessment tools to identify the extent of your knowledge about:

  • How specific variables may impact outcomes
  • Description of the Java if statement
  • Three things associated with every Java statement
  • What occurs with a false Java if/else statement
  • String object examples

Skills Practiced

This worksheet and quiz allow you to polish the following skills:

  • Reading comprehension - ensure that you draw the most important information from the related Java language lesson
  • Problem solving - use acquired knowledge to solve Java String object practice problems
  • Knowledge application - use your knowledge to answer questions about the three things included in every Java statement

Additional Learning

For further information about this topic, read the connected lesson, Java: If Statements. Within the lesson are answers to the quiz questions, and you can also explore the lesson to expand your knowledge concerning the following:

  • A recap of the Java language
  • Description and function of a Boolean expression
  • If/else statement examples