Presentation is loading. Please wait.

Presentation is loading. Please wait.

Review A program is… a set of instructions that tell a computer what to do. Programs can also be called… software. Hardware refers to… the physical components.

Similar presentations


Presentation on theme: "Review A program is… a set of instructions that tell a computer what to do. Programs can also be called… software. Hardware refers to… the physical components."— Presentation transcript:

1 Review A program is… a set of instructions that tell a computer what to do. Programs can also be called… software. Hardware refers to… the physical components that a computer is made of. The CPU has two parts: Control Unit Arithmetic and Logic Unit (ALU) A Memory Address is… a unique identifying number associated with a byte in memory.

2 Review Input is… any data the computer collects from the outside world. Output is… any data the computer sends to the outside world. A User is… a person who uses a computer program. An algorithm is… a precise sequence of steps to solve a problem

3 Quiz 1 Review A General-Purpose Programming Language is… a programming language designed to be used for writing software in a wide variety of application domains. A programming language is platform-specific if… once compiled, it can only be guaranteed to be able to run on the machine it was compiled for. A High-Level Programming Language is… a language that is easily read and written by humans, and is needed to be translated before a machine can use it. It provided a high level of abstraction from the details of the workings of the computer’s hardware Compilation is… the process of translating high-level language into machine language for platform-specific languages or some other intermediate code representation for other languages. A program called a compiler does this.

4 Review The Java Virtual Machine (JVM) is… a program that reads instructions from Java Byte Code and executes them for the platform that the JVM is installed on. Steps to create and run Java Program: 1. Write the source code in the Java programming language. 2. Run the source code through the Java Compiler (Interpreter) Ex: javac sourceFile.java 3. Run the resulting Java Byte Code through the JVM 4. The programs executes! Procedural Programming is… a programming methodology in which a program was made up of one of more procedures.

5 Review print and println are contained in the… out object The out object is contained in the… System class A variable is… a named storage location in the computer’s memory. An assignment statement… stores a value on the right side of the = to the variable on the left. When a variable is used NOT on the left hand side of a assignment statement, the ________________ is used. value stored in the variable

6 Review In Object Oriented Programming, what are the two major parts of an object? Attributes Methods What is a standard library of prewritten classes for performing specific operations? API What is the characteristic of variables that describe what legal values a variable can hold? Type (int, char, double, etc…) Name the integer data types int, byte, short, and long What are built-in data types that are basic building blocks for all other types and DO NOT create objects? Primitive Types

7 Review The expression 30 / (-2 * 4) in Java would resolve to what? -3 (Since all numbers in problem are integers) A value that is explicitly written in the code of the program is called what (Ex: interest = 0.05;) A Literal Which Type Holds Either True or False? Boolean


Download ppt "Review A program is… a set of instructions that tell a computer what to do. Programs can also be called… software. Hardware refers to… the physical components."

Similar presentations


Ads by Google