Shared Flashcard Set

Details

Intro to Java
An introduction to computers and java
46
Electrical Engineering
Undergraduate 1
08/22/2012

Additional Electrical Engineering Flashcards

 


 

Cards

Term

 

 

 

Hardware includes

Definition

 

 

 

 

the tangible parts of computer systems

Term

 

 

 

Software includes

Definition

 

 

 

 

programs

Term

 

 

 

 

Programs

Definition

 

 

 

sets of instructions for the computer to follow

Term




Modern computers have similar components including:

Definition

 

 

Input devices

Output devices

A processor

Two kinds of memory

Term

 

 

 

Name an input device

Definition

 

 

 

Keyboard, Mouse, etc

Term

 

 

 

 

Name an output device

Definition

 

 

 

 

display screen, printer

Term

 

 

 

 

What are the two types of computer memory?

Definition

 

 

 

 

Main and auxiliary memory

Term

 

 

 

 

Bit

Definition

 

 

 

 

A digit with a value of either 0 or 1

Term

 

 

 

How many bits are in a byte

Definition

 

 

 

 

8

Term

 

 

 

 

Address

Definition

 

 

 

a numbered location in the main memory where a byte resides

Term

 

 

 

What are some high-level languages

Definition

 

 

 

 

Java, C#, C++, Visual Basic, Python, Ruby

Term

 

 

 

 

What type of language can a computer understand?

Definition

 

 

 

 

A low-level language

Term

 

 

 

Compiler

Definition

 

 

 

Translates a program form a high-level language to a low-level language

Term

 

 

 

 

Source program

Definition

 

 

 

A high-level language version of a program that you run on the compiler

Term

 

 

 

What sort of programs do compiler produce?

Definition

 

 

 

 

machine or assembly language programs known as object programs

 

 

Term

 

 

 

What does the Hava complier translate a Java program into?

Definition

 

 

 

 

byte-code

Term

 

 

 

Byte Code

Definition

 

 

 

the machine language for a interpreter called the Java Virtual Machine

Term

 

 

 

Interpreter

Definition

 

 

a hypothetical computer that translates each byte-code instruction, executing the resulting machine language instructions on the particular copmuter before translating the next byte-code instructions

Term

 

 

 

What are most Java programs executed using?

 

Definition

 

 

 

Just-In-Time or JIT compiler

Term

 

 

 

What command is used to get the compiler to translate the Java program into byte-code?

Definition

 

 

 

javac

Term

 

 

 

What command is used to run machine-language instructions?

Definition

 

 

 

java

Term

 

 

 

When was Java invented?

Definition

 

 

 

1991

Term

 

 

 

Who created Java?

Definition

 

 

 

James Gosling and Sun Microsystems

Term

 

 

 

What was the original purpose of Java?

Definition

 

 

 

to be a language for home appliances like toasters and tvs

Term

 

 

 

What are the two kinds of Java programs?

Definition

 

 

 

applications and applets

Term

 

 

 

 

Application

Definition

 

 

 

a regular program meant to be run on your computer

Term

 

 

 

Applet

Definition

 

 

 

a little application meant to be sent to another location on the internet and run there

Term

 

 

 

Programmar

 

Definition

 

 

 

the person who writes a program

Term

 

 

 

 

User

Definition

 

 

 

the person who interacts with the program

Term

 

 

 

Package

Definition

 

 

 

a library of classes that have been defined already

(import java.util.Scanner;)

Term

 

 

 

Arguments

Definition

 

 

 

The item(s) inside parenthese that provide the information needed by methods

 

Term

 

 

 

Variable

Definition

 

 

 

something that can store data

Term

 

 

 

Statement

Definition

 

 

 

an instruction to the computer that ends with a semicolor

Term

 

 

 

Syntax

Definition

 

 

 

the grammar rules for a programming language

Term

 

 

 

System.out

Definition

 

 

 

an object for sneding output to the screen

Term

 

 

 

println()

Definition

 

 

 

a method to print whatever is in parenthese to the screen

Term

 

 

 

IDE

(integrated development environment)

Definition

 

 

 

cmbines a texte ditor with commands for compiling and running Java programs

Term

 

 

 

The ending of a non-compiled program

Definition

 

 

 

.java

Term

 

 

 

the ending of a compiled byte-vode verison of a Java program?

Definition

 

 

 

.class

Term

 

 

 

the class to run a program will contain the words

Definition

 

 

 

public static void main(String[] args)

Term

 

 

 

Bug

Definition

 

 

 

an error in a program

Term

 

 

 

debugging

Definition

 

 

 

eliminating errors

Term

 

 

 

Name three kinds of errors

Definition

 

 

 

Syntax, Runtime, and Logic errors

Term

 

 

 

Syntax Error

Definition

 

 

 

grammatical mistake in a program

Term

 

 

 

Runtime Errors

Definition

 

 

 

errors that are detected when your program is running but not compilation

Term

 

 

 

Logic Errors

Definition

 

 

 

errors that are not detected during compilation or while running that cause the program to produce incorrect results

Supporting users have an ad free experience!