Recitation Flashcards
TRUE OR FALSE
An array is a collection of entities of different types
False
The following are the rules in naming variables excepts:
a. numbers are accepted, but they should not be placed at the beginning
b. can be of any naming style, not case sensitive
c. consists of alphanumeric characters, dollar sign, and underscore
d. they can be of any length
B.
Comment in Java
//
It is used to print a line on the console
System.out.println
They are used to perform operations on variables and values
Operators
TRUE OR FALSE
In java, it is possible to inherit attributes and methods from one class to another.
TRUE
TRUE OR FALSE
Java is short for Javascript
FALSE
This conditional statement allows a variable to be tested for its equality against a list of value
switch
TRUE OR FALSE
!(!(FALSE || TRUE) && (TRUE && TRUE)
True
!(!(!(!(!(TRUE && FALSE))))))
True
The decrement operator decreases the current value by
a. 10
b. 100
c. 2
d. 1
D
It deals about creating objects that contain both data and functions
Object Oriented Programming
This refers to the embodiment of a class.
Object
Keyword that is used to return a value inside a method
return
In a for each, it is the variable that will accept the value from a collection
iterator variable
A unary logical operator and simply negates its value
NOT operator
Scanner method that reads an int (integer) value
NextInt()
It is used to stop a loop
break
They are data types and are enclosed in single quotes
Characters
Location of an element in an array
indices
correct syntax for-each loop
for (data type : collection) statement block
TRUE OR FALSE
The break statement immediately terminates the loop if the condition is true.
TRUE
A loop when another loop exists in the body of another loop is called _____
nested loop
Scanner method that reads a string value
NextLine()
create a method
methodName()
One of the components of for loops which performs the updates on certain variables that were used in the loop
iterator
For an OR operator to return true, only one input/operands should be true
FALSE