Questions and correct/verified Answers
These are words that have a special meaning in the programming language.
o Punctuation
o Programmer-defined names
o Key words
o Operators - ANSWER-Key words
These are symbols or words that perform operations on one or more operands.
o Punctuation
o Programmer-defined names
o Key words
o Operators - ANSWER-Operators
These characters serve specific purposes, such as marking the beginning or ending of a statement, or
separating items in a list.
o Punctuation
o Programmer-defined names
o Key words
o Operators - ANSWER-Punctuation
These are words or names that are used to identify storage locations in memory and parts of the
program that are created by the programmer.
o Punctuation
o Programmer-defined names
o Key words
o Operators - ANSWER-Programmer-defined names
These are the rules that must be followed when writing a program.
o Syntax
o Punctuation
o Key words
o Operators - ANSWER-Syntax
This is a named storage location in the computers memory.
, o Class
o Key word
o Variable
o Operator - ANSWER-Variables
The Java compiler generates.
o Machine code
o Byte code
o Source code
o HTML - ANSWER-Byte code
Every complete statement ends with a ____.
o Period
o Parenthesis
o Semicolon
o Ending brace - ANSWER-Semicolon
The following data 72 , 'A' , "Hello World" , 2.8712 are all examples of ______.
o Variables
o Literals
o Strings
o None of these - ANSWER-Literals
A group of statements, such as the contents of a class or a method, are enclosed in _____.
o Braces { }
o Parentheses ( )
o Brackets [ ]
o Any of these will do - ANSWER-Braces { }
Which of the following are NOT valid assignment statements?
o Total = 9;
o 72 = amount;
o profit = 129
o letter = 'W'; - ANSWER-72 = amount;
profit = 129