• 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/43

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;

43 Cards in this Set

  • Front
  • Back

Monitors, printers, status lights are all examples of

output devices

Mice, trackpads, keyboards, scanners, joysticks are all examples of

input devices

At each step of its operation, the input to a Central Processing Unit is

an instruction

A binary digit

is zero or one

A bit is

a binary digit, like 0 or 1

A byte in memory is identified by a unique number called its

address

In modern computer systems, a byte consists of

8 bits

RAM, random-access memory, is called that because

you can pick any two random locations and it will take the same time to access the data

3K means about 3 thousand bytes. How would you express two hundred million bytes?

200M

3K means about 3 thousand bytes. How would you express five billion bytes?

5G

3K means about 3 thousand bytes. How would you express four trillion bytes?

4T

Flash drives, CDs, external disks are all examples of

external storage memory devices

When a program runs on a computer, the part of the computer that carries out the instructions is called the

CPU

When a program runs on a computer, it is stored in

memory

When a program is not running, it is stored

on a disk

What best defines a "programming language"?

it allows us to express an algorithm

All are true EXCEPT:




1. Machine languages can be used to express algorithms


2. Machine languages can be used to write programs that can run on any machine.


3. Machine language consists of zeros and ones. 4. Machine language is produced by compilers.

2

A compiler

Translates source code into executable code

The code that a programmer writes is called

source code

An operating system

allocates resources like memory to programs that are running.

Rearrange the following code so that it forms a correct program that prints out the letter Q:


Write a statement that prints Hello, world to the screen.

Write a complete main method that prints Hello, world to the screen.



Suppose your name was Alan Turing. Write a statement that would print your last name , followed by a comma, followed by a space and your first name .



Suppose your name was George Gershwin. Write a complete main method that would print your last name , followed by a comma, followed by a space and your first name .



Write a complete program whose class name is Hello and that displays Hello, world on the screen.



A comment starts with what characters?

//

The text of a comment

can be anything the programmer wants to write

We hope you never have to encounter anything like the following expression in a program, but consider it for a moment and indicate its value: ( /* 5 + 3 */ - 9 + 6/*8*//2 ) //*+4*/ -10

-6

int twoPi = 3.14159; /* holds the value of two times pi */

Valid comment

/* This is a //*// First Rate Program //*//

invalid comment

The rules that govern the correct order and usage of the elements of a language are called the

syntax of the language

Files containing Java code must end with what "extension"?

.java

An error in a program that involves a violation of language rules will be detected at

compile time

Division by zero when the program is executing is an example of a

runtime error

In Java, an argument is

information provided to a method

Console input

receive input from the keyboard

Console output

display output on the monitor

IDE

Integrated Development Environments for creating/editing Java source code

Syntax Errors

Errors that are detected by a compiler (compile errors




Result from errors in code construction

Runtime errors

errors that cause a program to terminate abnormally




occur while a program is running if the environment detects an operation that is impossible to carry out

Input error

occurs when the program is waiting for the user to enter a value but the user enters a value that the program cannot handle

Logic errors

occur when a program does not perform the way it was intended to