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