Mathematical Operators and Code Practice

Ace your homework & exams now with Quizwiz!

You are writing a program using the Java language. What is a requirement of Java syntax?

The correct answer is Each statement needs to end in a semicolon. The Java programming language syntax uses the semicolon to end a statement.

What is the standard camel casing practice in naming variables in Java programming?

The correct answer is Start with a lowercase letter and use uppercase letters for the first letter in a new word. This is called camel casing, or "hump" notation.

Suppose you are asked to edit code and you see "data type Name variable comma" used to declare a variable in Java. Analyze it and decide how it should be written.

The correct answer is data type variableName semicolon. This tells the compiler, and the CPU, the name and data type for the variable, which allows the correct amount of storage space to be reserved in memory

What is not a simple data type in the Java language?

The correct answer is plus. Simple data types in Java include boolean, byte, char, double, float, int, long, and short.

When writing a Java program, using the NetBeans IDE allows you to write the code and interpret it in the same programming environment.

True

When you write code that introduces a variable into the program, you

declare. When writing the code, it is critical to follow proper syntax.

Keywords in the Java language are not case sensitive

false

A library book sits on the shelf in the non-reserved section for everyone to check out and use. What Java term best describes this?

global variable. Global variables are available to all code within the main() method.

Assigning a data value to a variable in a program is referred to as

initializing.


Related study sets

Patho Wk 7 Ch (36, 37, 38, 40, 41) Song WCU, WEEK 7 PATHO 370, Week 7 Patho WCU, Patho Week 7 Quiz, WCU Patho Week 7 - Ch. 36, 37, 38, 41

View Set

Chapter 46: Antineoplastic Drugs Part 2

View Set

Alg. 1 Topic 5.5: Standard Form of Linear Equations

View Set