Vous êtes sur la page 1sur 8

Most compilers will issue an error message if a function receives a variable as

a constant but then passes the variable to another function that does not
receive the variable as a constant.
Select one:
True
False Correct

Feedback
The correct answer is 'False'.
Correct
Marks for this submission: 1.00/1.00.
Question 2
Incorrect
Mark 0.00 out of 1.00
Not flaggedFlag question
Question text
A string AnswerIncorrect is a value within double quotes.

Feedback
The correct answer is: constant
Incorrect
Marks for this submission: 0.00/1.00.
Question 3
Correct
Mark 1.00 out of 1.00
Not flaggedFlag question
Question text

When you compile a Java program, error messages and/or ____ might appear.
Select one:
a. bugs
b. exceptions
c. inconsistencies
d. warnings Correct

Feedback
The correct answer is: warnings
Correct
Marks for this submission: 1.00/1.00.
Question 4
Correct
Mark 1.00 out of 1.00
Not flaggedFlag question
Question text
The ____ of a variable defines what kind of values may be stored in a variable
and what kind of operations can be performed on it.
Select one:
a. data type Correct
b. syntax
c. language
d. input

Feedback
The correct answer is: data type
Correct

Marks for this submission: 1.00/1.00.


Question 5
Complete
Marked out of 1.00
Not flaggedFlag question
Question text
What does it mean to compile a program?
it's when a program written in machine language is translated into machine
code for execution

Question 6
Correct
Mark 1.00 out of 1.00
Not flaggedFlag question
Question text
In Java, it is conventional to begin class names with a(n) AnswerCorrect letter.

Feedback
The correct answer is: uppercase
Correct
Marks for this submission: 1.00/1.00.
Question 7
Correct
Mark 1.00 out of 1.00
Not flaggedFlag question
Question text
An integer value may be stored in an integer data type variable, declared

with the keyword ____.


Select one:
a. INT
b. integer
c. int Correct
d. Integer

Feedback
The correct answer is: int
Correct
Marks for this submission: 1.00/1.00.
Question 8
Correct
Mark 1.00 out of 1.00
Not flaggedFlag question
Question text
Basic logic components used in programs are called ____.
Select one:
a. control structures Correct
b. loop structures
c. sequence structures
d. selection structures

Feedback
The correct answer is: control structures
Correct

Marks for this submission: 1.00/1.00.


Question 9
Complete
Marked out of 1.00
Not flaggedFlag question
Question text
What is a variable?
A variable is a storage location with an associated identifier

Question 10
Complete
Marked out of 1.00
Not flaggedFlag question
Question text
What is low-level programming? What is high-level programming? Is
programming in Java considered low-level or high-level?
low-level programming is programming that provides little or no abstraction
from a computer's instruction set architecture.

high level programming is a writing a program that more or less is


independent of a particular computer

Java is considered high level

Question 11
Complete
Marked out of 1.00

Not flaggedFlag question


Question text
Where in your program should you place the import statements?
above public class

Question 12
Correct
Mark 1.00 out of 1.00
Not flaggedFlag question
Question text
A Java value expressed within double quotation marks is commonly called a
____.
Select one:
a. string Correct
b. quote
c. character
d. citation

Feedback
The correct answer is: string
Correct
Marks for this submission: 1.00/1.00.
Question 13
Correct
Mark 1.00 out of 1.00
Not flaggedFlag question
Question text

In Java, a(n) ____ comment begins with two slashes (//) and continues to the
end of the line on which it is placed.
Select one:
a. standard
b. line Correct
c. block
d. expanded

Feedback
The correct answer is: line
Correct
Marks for this submission: 1.00/1.00.
Question 14
Correct
Mark 1.00 out of 1.00
Not flaggedFlag question
Question text
Characters may be stored in character data type variables, declared with the
keyword ____.
Select one:
a. String
b. character
c. Char
d. char Correct

Feedback
The correct answer is: char

Correct
Marks for this submission: 1.00/1.00.
Question 15
Complete
Marked out of 1.00
Not flaggedFlag question
Question text
Identify and describe two common errors that are easy to make when
manipulating arrays.

Vous aimerez peut-être aussi