• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/64

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

64 Cards in this Set

  • Front
  • Back

What is int?

Int is short for integer, which are all positive and negative numbers, including zero. This number could represent the number of visits a website has received or the number of programming languages you know.

What is boolean?

A boolean is a data type that canon only be either true or false.

What is char?

The char data type is used to represent single characters. That includes the key on a keyboard that area used to produce text. Must be enclose in single quotes.

What is a variable?

A variable stores a value. All variables must have specified data.

What is whitespace?

Whitespace is 1 or more characters (such as a space, tab, and enter, or return) that do not produce a visible mark or text. Whitespace is often used to make the code visually presentable.

What is a comment?

A comment is a text you want java to ignore. Comments allow you to describe code or keep notes.

What is a single line comment?

A comment that begins with 2 forward slashes. //

What is a multi-line comments?

Multi-line comments are generally longer comments that can span multiple lines. The begin with /* and end with */.

What is product?

X * y. Multiplication

What is sum?

X + y. Addition.

What is difference?

X - y. Subtraction.

What is Quotient?

X / y. Division.

What is modulo?

The modulo operator represents in java by the % symbol. Returns the remainder of dividing two numbers.

What are Relational operators?

Relational operators compare data types of have a defining order, like numbers (since numbers are getting smaller or larger than other numbers.) Relational operators will always return a boolean value of true or false.

<

Less than

<=

Less than or equal to.

>

Greater than

>=

Greater than or equal to.

What are the equality operators?

==: equal to.


!=: not equal to.

Data types are

Int, boolean, and char.

What is Control flow?

Writing java programs that can follow different set of instructions depending on the values that we provide to them.

Describe boolean operator "and".

1. The "and" operator is represented in Java by &&.


2. It returns a boolean value of true only when the expressions on both sides of && are true.

Describe boolean operator "or"?

1. The "or" operator is represented in java by ||.


2. It returns a boolean value of true when at least one expression on either side of || is true.

What is a computer program?

A sequence of instructions and decisions.

Computers can execute...

Very basic instructions in rapid succession.

What is programing?

The act of designing and implementing computer programs.

What is hardware?

The physical computer and peripheral devices

Software

The programs the computer executes

What is the functions of a CPU?

The central processing unit performs program control and data processing.

What is the functions of storage?

Memory (primary storage) and secondary storage

What is the function of peripherals?

To interact with human users.

What are the four parts of a computer?

CPU, storage, peripherals, networks

Java programming language is....

Safe


Portable


Platform-independent


Vast set of library packages


Designed for the internet.

What is an editor?

A program for entering and modifying text, such as a java program. Case sensitive. Compiler translates source code into class files. Class files contain instructions for java virtual machine.

What are classes?

The fundamental building blocks of java programs.

Every source file can contain, at least what?

One public class.

Each class contains .....

A declaration of methods.

Each method contains....

A sequence of instruction.

A method....

Contains a collection of programming instructions that describe how to carry out a particular task.


Called by specifying the method and its arguments.

Main method

Every java application contains a class with a main method. When the application starts, the instructions in the main methods are executed.



Declaring a main method


public static void main(String[] args)


{


.....


}

The body of the main methods

Statements

What is a string?

Is a sequence of characters enclosed in double quotation marks?

What does System.out.println do?

Method prints a string or a number and then starts a new line.

What does System.out.print do?

Prints an item without starting a new line.

What is a compile error (syntax error)?

A violation of the programming language rules. Detected by the computer.

What is a runtime error (logic error)?

Causes the program to perform an action the programmer did not intend.

What is an exception?

A type of runtime error that generates an error message from java virtual machine. Such as dividing by zero.

What is an algorithm?

A sequence of steps that is unambiguous, executable, and terminating.

What is pseudo code?

An informal description of a sequence of steps for solving a problem.


1. Describe how a value is set or changed


2. Describe decisions and repetitions.


3. Use indentation to indicate which statements should be selected or repeated.


4. Indicate results.

What translates high-level descriptions into machine code?

Compiler

What term is used to refer to a sequence of steps for solving a problem that is unambiguous, executable, and terminating?

Algorithm

Which statement is true about running a java program on a different cpu?

You can take the code that has been generated by the java compiler and run it on different CPUs.

Which is true about the following java statement: System.out.pringln("Welcome!");

There are no errors.

Structuring programs and development processes in such a way that an error in one part does not trigger a disastrous response is referred to as __________.

Defensive programming

Every java program consists of one or more of these fundamental building blocks.

Class

A ____________ contains sequences of instructions to perform a particular task.

Method

What is the object in the given method call? System.out.pringln("Welcome");

System.out

What is the name of the file created after a successful compilation of MyClass.java?

MyClass.class

When a Java application starts, what is the name of the method that is executed?

Main

Which type of storage is made from memory chip?

Primary storage

What is another term used to describe an error causing a program to take an action that the programmer did not intend?

Logic error

What term is used to refer to information passed in to a method on a call?

Parameter

Which statement is true about the compiler process?

The compiler will continue compiling after it finds an error.

What is JVM?

A virtual machine that runs compiled Java code on any CPU