JAVA METHODS Flashcards

1
Q

group of statements that
performs a specific task when
called in a program
➢ you can pass data(parameters)
into a method
➢ it can return a value

A

Java method

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

Built in methods in java that are ready to use

A

Standard Library method

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

The logical operator used to create a conditional expression which are true provided that one of the teo conditional expression is true?

A. “||”
B. &&
C. !
D. &

A

B ||

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

It is a collection of classes
A. Object
B. Method
C. Package
D. Libraries

A

Package

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

What is the equilavalent of expression of : y=pow(exp(n*log(b),2.0);

A

BASTA NONE

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

Solution stepbystep programming problem can be reffered to as ?
A. Pseudo code
B. Program
C. Algorithm
D. Flowchart

A

C. Algorithm

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

Which is a valid identifier?
A. 3yds
B. B_2
C. Else
D.x-100

A

B. /-2

Kasi ang pwede lang ay “_”,$”,

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

Which of the following will guve the result of 2.0?
A. 14/7
B. 14%5
C. 14/7.0
D. 14%7

A

C.

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

The data type of -37e+2 is
A. Char
B. Float
C. Int
D. exponential

A

B. Float

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

?? Is considered programming tool?
A. Flowcharting
B. Url
C. Hypertext Matkup Language
D. All if the bove

A

A. Flowcharting

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

Arithmetic Operation right to left

A

*, /, %, +, -

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

An interprise platform which is mainly use to develop wel n enterprise applications
A. JAVASE
B. JAVAEE
C. JAVA ME
D. JAVA FX

A

B. JAVA EE

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

It is used to load jaba classes into yhe JVM dynamically
A. Class loader
B. Byte verifier
C. Bytecode verifier
D. Security Manager

A

A.

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

The value of the controlling variable/Expression in the swutch statement should be of type ?
A. Int
B. Char
C. Float
D. None

A

A. Int

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

A switch staement is often used instead if a nested statement or a multiple alternative statements
A. True. B. False
C.

A

A.

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