Recitation Flashcards

1
Q

TRUE OR FALSE

An array is a collection of entities of different types

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

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

A

B.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Comment in Java

A

//

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

It is used to print a line on the console

A

System.out.println

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

They are used to perform operations on variables and values

A

Operators

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

TRUE OR FALSE
In java, it is possible to inherit attributes and methods from one class to another.

A

TRUE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

TRUE OR FALSE
Java is short for Javascript

A

FALSE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

This conditional statement allows a variable to be tested for its equality against a list of value

A

switch

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

TRUE OR FALSE
!(!(FALSE || TRUE) && (TRUE && TRUE)

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

!(!(!(!(!(TRUE && FALSE))))))

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

The decrement operator decreases the current value by
a. 10
b. 100
c. 2
d. 1

A

D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

It deals about creating objects that contain both data and functions

A

Object Oriented Programming

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

This refers to the embodiment of a class.

A

Object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Keyword that is used to return a value inside a method

A

return

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

In a for each, it is the variable that will accept the value from a collection

A

iterator variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

A unary logical operator and simply negates its value

A

NOT operator

17
Q

Scanner method that reads an int (integer) value

A

NextInt()

18
Q

It is used to stop a loop

A

break

19
Q

They are data types and are enclosed in single quotes

A

Characters

20
Q

Location of an element in an array

A

indices

21
Q

correct syntax for-each loop

A

for (data type : collection) statement block

22
Q

TRUE OR FALSE
The break statement immediately terminates the loop if the condition is true.

A

TRUE

23
Q

A loop when another loop exists in the body of another loop is called _____

A

nested loop

24
Q

Scanner method that reads a string value

A

NextLine()

25
Q

create a method

A

methodName()

26
Q

One of the components of for loops which performs the updates on certain variables that were used in the loop

A

iterator

27
Q

For an OR operator to return true, only one input/operands should be true

A

FALSE