1/63
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
What is JDK stand for?
Java Development Kit
What is JRE stand for?
Java Runtime Environment
True or False
is Java Multi-Threaded?
True
What is JVM stand for?
Java Virtual Machine
It define the starting and ending point of a flowchart
Terminal
Preparation or Initialization of memory space for data processing
Initialization
it used to represent the data input and output
parallelogram / Input or Output
Manipulation of data
Rectangle / Process
process condition using relational operators. used for trapping and filtering data.
Decision
defines the logical sequence of the program. It points to the next symbol to be performed
Flow line
Connects to the flowchart to avoid spaghetti connection on the same page.
On-page connector
Connects the flowchart on different page to avoid spaghetti connection.
Off-page connector
it represent a flow which is carried out in a particular order
Sequence Structure
represents a flow where in process are selected based on certain condition
Selection structure
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
repeats a set of action based on the answer to a question
Loop structure (repetition or iteration)
English-like representation of the logical steps it takes to solve a problem
Pseudocode
Pictorial representation of the logical steps it takes to solve a problem
Flowchart
A data type is used for string of characters such as names, addresses phone number
String
A group of statement that performs a specific task when called in a program
Java Methods
a function return the absolute value of the parameter passed to it.
Math.abs()
a function rounds a floating points value up to the nearest Integer value.
Math.ceil()
a function round a floating points value down to the nearest integer value.
Math.floor()
a method return the smallest of two value passed to it as parameter
Math.min()
a method return the largest of the value passed to it as parameter.
Math.max()
a math rounds a float or double to the nearest integer
Math.round()
a method returns a number a random floating point number between 0 and 1.
Math.random()
A function returns e (Euler's number) raised to power of the value provided as parameter
Math.exp()
a method provides the logarithm of the given parameter
Math.log()
a function takes two parameter and raised to the power of the second parameter
Math.pow()
It calculates the square root of the parameter given to it
Math.sqrt()
a constant double with a value that is very close to the value of PI.
Math.PI
calculates the sine value of some angle value in radians
Math.sin()
how do you declare a constant variable in Java?
final
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
True or False
is this the right way to create a Java?
print class x{
print class static void main(String[]args){
}
}
True
Which is not belong to Java keyword
1. console.log
2. abstract
3. assert
4. break
console.log is not belong to Java keyword
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.
What do you need to import if the user want to type in keyboard?
Java.util.*/ Java.util.Scanner
cursor moves to the beginning of the next line
\n
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.
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.
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.
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.
What is WORA?
Write Once, Run Anywhere
Checks bytecode and communicate with the operating system
Java Interpreter
Programming statements written in high-level programming languages
Source Code
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()
Continue to the end of the current line. Do not require and ending symbol
Line comments
Begin with a forward slash and two asterisk (/*) and end with asterisk and forward slash (/)
Javadoc
Provides prewritten information about java classes
Java API
A software development kit(SDK) of programming tools
JDK
Translate program code into machine language (binary language)
Compiler or an Interpreter
Named memory location whose value can vary
Variable
Produce incorrect output as result
Logical errors
Focusses on the object or "Things" and describes their features (for attributes) and their behaviors.
Object-oriented programming
Hypothetical computer developed to make Java programs machine independent
JVM
Allows the user to interact with a program in a graphical environment
Graphical User Interface (GUI)
Location on your computer screen at which you type text entries to communicate with the computer operating system.
Command line
Each word of an identifier begins with uppercase letter
Upper Camel casing
Means the method is accessible and usable even though no object of the class exist
Static
Organize code and improve readability
Whitespace
True or False
is this the right way to program switch statement?
int x;
switch(x){
case 1:
break;
case 2:
break;
}
True
The compiler does not translate, and the JVM does not execute its command
Comment out