ICS2602

0.0(0)
studied byStudied by 1 person
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/63

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

64 Terms

1
New cards

What is JDK stand for?

Java Development Kit

2
New cards

What is JRE stand for?

Java Runtime Environment

3
New cards

True or False

is Java Multi-Threaded?

True

4
New cards

What is JVM stand for?

Java Virtual Machine

5
New cards

It define the starting and ending point of a flowchart

Terminal

6
New cards

Preparation or Initialization of memory space for data processing

Initialization

7
New cards

it used to represent the data input and output

parallelogram / Input or Output

8
New cards

Manipulation of data

Rectangle / Process

9
New cards

process condition using relational operators. used for trapping and filtering data.

Decision

10
New cards

defines the logical sequence of the program. It points to the next symbol to be performed

Flow line

11
New cards

Connects to the flowchart to avoid spaghetti connection on the same page.

On-page connector

12
New cards

Connects the flowchart on different page to avoid spaghetti connection.

Off-page connector

13
New cards

it represent a flow which is carried out in a particular order

Sequence Structure

14
New cards

represents a flow where in process are selected based on certain condition

Selection structure

15
New cards

represent a flow which, based on some predetermined frequency or condition, is carried out over and over again as long as the requirement is satisfied, or until some criteria has been met

Repetition structure

16
New cards

repeats a set of action based on the answer to a question

Loop structure (repetition or iteration)

17
New cards

English-like representation of the logical steps it takes to solve a problem

Pseudocode

18
New cards

Pictorial representation of the logical steps it takes to solve a problem

Flowchart

19
New cards

A data type is used for string of characters such as names, addresses phone number

String

20
New cards

A group of statement that performs a specific task when called in a program

Java Methods

21
New cards

a function return the absolute value of the parameter passed to it.

Math.abs()

22
New cards

a function rounds a floating points value up to the nearest Integer value.

Math.ceil()

23
New cards

a function round a floating points value down to the nearest integer value.

Math.floor()

24
New cards

a method return the smallest of two value passed to it as parameter

Math.min()

25
New cards

a method return the largest of the value passed to it as parameter.

Math.max()

26
New cards

a math rounds a float or double to the nearest integer

Math.round()

27
New cards

a method returns a number a random floating point number between 0 and 1.

Math.random()

28
New cards

A function returns e (Euler's number) raised to power of the value provided as parameter

Math.exp()

29
New cards

a method provides the logarithm of the given parameter

Math.log()

30
New cards

a function takes two parameter and raised to the power of the second parameter

Math.pow()

31
New cards

It calculates the square root of the parameter given to it

Math.sqrt()

32
New cards

a constant double with a value that is very close to the value of PI.

Math.PI

33
New cards

calculates the sine value of some angle value in radians

Math.sin()

34
New cards

how do you declare a constant variable in Java?

final

35
New cards

True or False

is this float?

float x = 2.33;

False, Why when you use float after 2.33 you need to declare a f at the end. The output is 2.33f

36
New cards

True or False

is this the right way to create a Java?

print class x{

print class static void main(String[]args){

}

}

True

37
New cards

Which is not belong to Java keyword

1. console.log

2. abstract

3. assert

4. break

console.log is not belong to Java keyword

38
New cards

True or False

what is wrong in this program>

public class x {

public static void main (String[]args){

System.out.print("Hello World")

}

}

Semi-colon must be put after the close parenthesis.

39
New cards

What do you need to import if the user want to type in keyboard?

Java.util.*/ Java.util.Scanner

40
New cards

cursor moves to the beginning of the next line

\n

41
New cards

Write a Java program to print the result of the following operations. Test Data: a. -5 + 8 6b. (55+9) % 9c. 20 + -35 / 8d. 5 + 15 / 3 * 2 - 8 % 3

You need to code this.

42
New cards

Write a Java program to compute the area of a hexagon.

Use methods to do this.

Area of a hexagon = (6 s^2)/(4tan(π/6))where s is the length of a side Input Data: Input the length of a side of the hexagon: 6

You need to code this.

43
New cards

Write a Java program to convert a octal number to a hexadecimal number. Use methods to do this

Input Data: Input a octal number : 100

You need to code this.

44
New cards

Write a Java program to print the area and perimeter of a rectangle.

Test Data: Width = 5.5 Height = 8.5

You need to code this.

45
New cards

What is WORA?

Write Once, Run Anywhere

46
New cards

Checks bytecode and communicate with the operating system

Java Interpreter

47
New cards

Programming statements written in high-level programming languages

Source Code

48
New cards

Retrieves input as a long. Note that when you enter an input value that will be stored as long, you do not type an L. The L is used only with constants coded within a program.

nextLong()

49
New cards

Continue to the end of the current line. Do not require and ending symbol

Line comments

50
New cards

Begin with a forward slash and two asterisk (/*) and end with asterisk and forward slash (/)

Javadoc

51
New cards

Provides prewritten information about java classes

Java API

52
New cards

A software development kit(SDK) of programming tools

JDK

53
New cards

Translate program code into machine language (binary language)

Compiler or an Interpreter

54
New cards

Named memory location whose value can vary

Variable

55
New cards

Produce incorrect output as result

Logical errors

56
New cards

Focusses on the object or "Things" and describes their features (for attributes) and their behaviors.

Object-oriented programming

57
New cards

Hypothetical computer developed to make Java programs machine independent

JVM

58
New cards

Allows the user to interact with a program in a graphical environment

Graphical User Interface (GUI)

59
New cards

Location on your computer screen at which you type text entries to communicate with the computer operating system.

Command line

60
New cards

Each word of an identifier begins with uppercase letter

Upper Camel casing

61
New cards

Means the method is accessible and usable even though no object of the class exist

Static

62
New cards

Organize code and improve readability

Whitespace

63
New cards

True or False

is this the right way to program switch statement?

int x;

switch(x){

case 1:

break;

case 2:

break;

}

True

64
New cards

The compiler does not translate, and the JVM does not execute its command

Comment out