Java Computer Programming Quiz

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

What do you need for JVM, JRE and JDK?

1. Source Code 2. Java Compiler 3. Byte Code

What setup do you need to start programming using any programming language? (3)

1. Text Editor (creates computer programs) Netbeans, Eclipse and BlueJ 2. Compiler (Middle Man) compiles programs into binary format 3. Interpreter (translator) executes programs directly

What is computer programming languages made of? (7)

1. programming environment 2. Basic Syntax 3. Data types 4. Variables 5. Keywords 6. Basic Operator 7. Decision Making

Value

A number, string, or other data that can be stored in a variable.

byte code

A program code that has been compiled from source code into a low-level code designed for a software interpreter. It may be executed by a virtual machine (such as a JVM) or further compiled into machine code, which is recognized by the processor.

low-level language

A programming language that is designed to be easy for a computer to run. Also called "machine language" or "assembly language". Example: C

high-level language

A programming language that is designed to be easy for humans to read and write. Example: Java

key words

A reserved word used by the compiler to analyze programs. You cannot use these (like public, class, and void) as variable names.

Procedure

A sequence of instructions to understand proper operations.

What is a computer program?

A sequence of instructions written using a computer programming language to perform a specific task by the computer.

Algorithm

A step-by-step procedure for solving a problem, especially by a computer.

Flowchart

A visual representation of a process, computer program or algorithm. Shows a plan of how to solve a problem using connecting lines and symbols. Process that explains a plan and represents an algorithm.

Primitive Data Types (4 definitions)

Already defined in Java. Always has a value. It starts with a lowercase letter. It Depends on the data type. Ex: byte, short, long and boolean.

compile-time error

An error in the source code that makes it impossible to compile. Also called a "syntax error".

executable

Another name for object code that is ready to run on specific hardware.

What are applications?

Computer Programs, Movie Making and Mobile Phones. Ex: Excel, Photoshop, Illustrator Ex: Graphics/Special Effects Ex: SMS, Chat and Voice Communication

Pseudocode

Computer program expressed in a natural language rather than a programming language. Ex: Writing thought process in steps

compile

Converts high-level language like Java into a low-level language like Machine Code (binary file). (Middle Man)

Why are flowcharts used?

Document, plan and complex processes in clear and easy to understand diagrams.

Why is Java platform independent?

Execute program on any operating system. 1. Written 2. Compiled 3. Written in byte code. Windows, Linux and Apple all run with Java.

What is platform dependent?

Execute program on certain operating systems. Ex: C level language only works on windows operating system.

Flowchart Symbol lines with arrows

Flow lines or Connecting lines.

What is JDK?

Java Development Kit. Write/Create Program/Install Java. Run Code and Program.

What is JRE?

Java Runtime environment. Platform Dependant. Own library we use and execute the file. Minimum needed to run code.

What is JVM?

Java Virtual Machine. Platform Dependent (files to own specific operating system). 1. Load Code 2. Verify Code 3. Execute Code 4. Provides runtime environment, where Java bytecode can be executed.

Variable

Name of variable (such as x or name). The equal sign is used to assign values to variables. Store data values.

Flowchart Symbol Circle

Name: Connector Function: Flowchart can be drawn without intersecting lines/reverse flow.

Flowchart Symbol Diamond

Name: Decision Function: Ask a question that can be answered in binary format. (Yes/No or True/False)

Flowchart Symbol Parallelogram

Name: Input/Output Function: computer obtains data/output results

Flowchart Symbol 2nd rectangle

Name: Predefined Process Function: Subroutine/Interrupt Program

Flowchart Symbol Oval

Name: Terminal Function: Start/end of the program, process or interrupt program.

Flowchart Symbol Rectangle

Name:Process Function: Any type of internal operation inside processor or memory.

Non Primitive Data Types (4 definitions)

Reference types referred to by objects. Created by programmer, not defined by Java (String). Methods for certain operations. Can be Null. Starts with uppercase letter and all the same size. Ex: Strings, Arrays, Classes and Interfaces.

Code

Series of commands telling the computer what to do.

Syntax

Set of rules how java program is defined and written and interpreted. Ex: Every line of code that runs in Java must be inside a class. Uppercase first letter.

programming

The application of problem solving to creating executable computer programs.

What is Java Interpreter?

Translates Java bytecode into code that can be understood by Operating System. 1. Computer Program File 2. Interpreter 3. Program Execution. Code is converted into machine level language.

Comments

Used to explain Java code, make it more readable. Single line comments //. Multi Line comments /* start and */ end a comment.

compile command

When you perform a this type of command, you tell the computer to translate the program's source code to code that the computer can run.

run command

When you perform this type of command, you tell the computer to run the translated code and perform the tasks specified by the code

source code

contains instructions written by a programmer specifying the actions to be performed by computer software. Source Code Chart. *= Any File *. Java= end when writing code bytecode *. Class= (written on a windows, Mac or Linux operating system.


संबंधित स्टडी सेट्स

Chromotography and Electrophoesis

View Set

Chapter 51: Obtaining Employment

View Set

Esophageal Disorders (PEARLS) Smarty PANCE

View Set

Allergy/Rheumatic practice Test NUR212

View Set

PATHO FINAL Self Assessment Quizzes

View Set

Pharmacology ATI study questions Part 2

View Set

Chapter 23 (Gynecologic Emergencies)

View Set