Section 1

Preview this deck

Relational Operators

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

7 years ago

Date created

Mar 1, 2020

Cards (44)

Section 1

(44 cards)

Relational Operators

Front

==, !=, >, <, >=, <=

Back

order of operations

Front

a) Unary Minus, Unary Plus, ++, -- b) *, /, % c) +, - d) <, <=, >, >= e) ==, != f) =, +=, -=, *=, /=, %=

Back

Numeric constant (literal numeric constant)

Front

a specific numeric value

Back

for loop

Front

repeats a group of statements while a control-variable is between its initial and final values.

Back

import java.io.*;

Front

imports all classes in the io package

Back

file

Front

is a collection of data (usually stored on a disk.)

Back

Associativity of Operations

Front

For binary operators, associativity is left to right. For unary operators, associativity is right to left. Associativity a) Unary Minus, Unary Plus, ++, -- right to left b) *, /, % left to right c) +, - left to right d) <, <=, >, >= left to right e) ==, != left to right f) =, +=, -=, *=, /=, %= right to left

Back

Computer

Front

a machine capable of following the instructions of a program.

Back

Complier

Front

a program used to translate the source code of a computer program into binary form using only 0s and 1s

Back

while statement

Front

while (BooleanExpression) body (statement) of the loop

Back

input file

Front

contains items for input to the program (i.e., items you might otherwise type in from the keyboard)

Back

public static void main(String[] args)

Front

main method

Back

Central Processing Unit (CPU)

Front

Carries out the instructions of the programs. Moves data from one part of machine to another part of the machine. Manipulates data (e.g., adds, compares, etc.).

Back

void method

Front

A method that does not return a value.

Back

sentinel

Front

A special value that marks the end of a list of values Use while (id != -1)

Back

Operating System (OS)

Front

The software that manages the entire computer system.

Back

Syntax

Front

Rules for combining the basic elements into programs

Back

Semantics

Front

Rules for understanding what programs and their parts cause the computer to do.

Back

if statement

Front

The common programming structure that implements "conditional statements".

Back

interpreter

Front

Software that translates and executes programs written in high-level languages one statement at a time.

Back

Internal memory

Front

internal to the system printed circuit boards. Used to store programs and data that are currently being processed by the CPU. a) RAM - Random Access Memory b) ROM - Read Only Memory

Back

external memory

Front

memory external to the system printed circuit boards. Used for long term and mass storage of programs and data. a) Hard Disks b) Magnetic Tape c) Flash Drives d) CD ROM

Back

input device

Front

used to input programs and data into the computer. a) Keyboard b) Mouse or Trackball

Back

if-else statement

Front

allows your program to perform one action if the Boolean expression evaluates to true and a different action if the Boolean expression evaluates to false. I.E if (x > y) max = x; else max = y; System.out.println(max);

Back

double

Front

creates a double precision real variable. Double precision numbers can represent larger and smaller numbers than single precision numbers and with more precision (more bits are used to store the number).

Back

import java.util.Scanner;

Front

the import statement for the Scanner class

Back

Parameterless Methods

Front

methods without parameters

Back

while loop

Front

repeats a group of statements while a given condition is true

Back

programming language

Front

A language with which programs are written

Back

output device

Front

used to receive output information from the computer. a) Screen b) Printer

Back

low-level programming language.

Front

Assembly Language:

Back

High-level programming languages.

Front

Java, C, C++, Fortran, Pascal

Back

simple statement

Front

a statement that does not contain any other statement as a component I.E System.out.println("hello!"); OR x = 25;

Back

method

Front

a set of instructions that can be used again and again, each time on a possibly different set of values (parameters). I.E double w,y; w = 16.0; y = Math.sqrt(w); //w is the argument System.out.println(y);

Back

output file

Front

contains items output from your program (i.e., items you might otherwise have sent to the screen).

Back

Boolean

Front

A single value of either TRUE or FALSE

Back

lexicon

Front

A set of allowable basic elements

Back

compound statement

Front

Statement between braces I.E { statement-list }

Back

string literal

Front

text in double quotes

Back

software

Front

program or a collection of programs that are not 'built-in' to the hardware.

Back

program

Front

a set of instructions for a computer

Back

machine language

Front

The "language" that the computer actually understands. (strings of 1s and 0s)

Back

float

Front

creates a single precision real variable

Back

Summation

Front

int i, sum = 0; for (i = 1; i <= 30; i++) sum = sum + (i * i); System.out.println(sum + " is the sum of the first 30 squares.");

Back