Mr. Rogers AP Computer Science A - Q1 Objectives

Computer Science Objectives for Test 1

Chap. 1

Hardware
1) Write simple output programs.
 
2)Define the terms bit, byte, kilobyte, megabyte, and gigabyte.

3) State the basic types of gates and give logic tables for each. http://scitec.uwichill.edu.bb/cmp/online/P10F/logic_gates2.htm

4) Correctly identify and describe the functions of the following components.

5) State the common way that circuit boards are damaged and 2 ways to avoid it.

6) Describe the function of ROM and the BIOS.

7) Describe the function of a UPS.

8) State the function of the bus.

9) Name the 2 most common I/O devices.

10) State the difference between volatile and non volatile memory.

 

Programming Assignment Write a program which receives three input characters and outputs your printed initials in large size (at least 2 inches high)

 

Binary and Hexadecimal Conversions

11) Convert binary to decimal numbers.

12) Convert binary to hexadecimal numbers.
13) Convert hexadecimal to binary.
14) Convert hexadecimal to decimal numbers.
15) Given a quantity of bits specify the largest number which can be represented.
16) Given a number of bits specify the largest number of objects or colors which can be specified.
17) State how characters are represented inside computers and give the name of the code.
 
Assignment: read Chap. 1
 
 
 
Chap. 3
Software Terms
1) Correctly use the following terms:
 
2) Use the two major computer program development tools.
 
3) Contrast procedural and object oriented programming.
4) List and explain the 6 phases of the Software System Life Cycle.

5) State the type of program used for delivering Java programs over the internet.

6) Write a simple applet.

Assignment: read Chap. 3

Homefun 7-12 p.89

Programming Assignment 15, 16 p.90

 

Chap. 4

Introduction to Classes Objects Events

  1. Correctly use the following terms:

  1. Explain the term "primitive data types" and give examples.

  2. Name four classes contained in the java.lang package which is automatically imported into your java programs.

Homefun read Chap. 4 1-6 p.114-115,

Write brief definitions for the above terms.

Programming Assignment 9, 10, 12 p. 117

Programming Assignment: Write a program which uses command line input to input a single dimension in centimeters. Use this dimension to calculate and output the surface area and volume of a cube, sphere, and cylinder along with the correct units. The radius and height of the cylinder are equal to the dimension. Use a separate method for each calculation.

 

Chap. 5

Java Syntax and Style

  1. Correctly use the three forms of comments:

  1. Identify reserved words (p. 125).

  2. Correctly use the naming conventions for classes, methods, and fields.

Homefun read Chap. 5; Exercises 3, 4, 5, 7, 8, 10 p.136-137

Programming Assignment Lab 5.6 p. 133

 

 
Essential Question: Why did you learn to find remainders in grade school instead of going straight to long division ?

Chap. 6

Data Types, Variables, and Arithmetic

  1. Understand the meaning and use of the equal sign in Java.

  1. Correctly declare fields and local variables.

  2. Correctly initialize fields and local variable.

  3. State the default value used for initializing fields.

  4. State the default value used for initializing local variables.

  1. State the eight types of primitive data types and their sizes in bytes (p. 145).

  2. State the primitive data types which do not have a true decimal point.

  3. Correctly Use (p.146):

  1. Understand the term scope (p. 149).

 

Homefun read Sections 6.1 to 6.5; Exercises 1- 7 p.165-166

 

  1. Perform integer division.

  2. Truncate and round numbers using integer division.

  3. Cast variables.

Example:
int a, b;
double c;
c = (double) a / (double) b;
  1. Use literal constants as either int or doubles (Example: 2, 2.0).

  2. Correctly use various arithmetic operators including:

  1. Correctly use the order of operation for arithmetic.

  1. parentheses

  2. division, multiplication, modulus

  3. addition, subtraction

Homefun read Sections 6.6 to 6.10; Exercises 8, 10, 11 p.166-167

Programming Assignment Lab 6.8, 6.9 p. 156-163, exercises 12, 13 p.167

 

 

 
Essential Question: How does a progressive income tax system work and is it a good idea?

Tax code program:

Input: Using the command line input income in dollars. (This needs to be changed to cents inside the program.)

 

Output:

NTR = (taxDue) / (income) *100

 

Description: The program will round any tenths of a cent upward. "If" statements are not allowed. The program will use only algorithms to calculate taxes. It will use the following progressive tax table:

 
Income ($) Tax Rate Comments
        0 to 19,999.99  00 %

This part of income is never taxed

20,000 to 29,999,99 25 % Only income above $19,999.99 is taxed at 25%
30,000 +                    35 % Only Income above $29,999.99 is taxed at 35%. Note this is an additional 10% above the 25% tax that kicks in at $29,999.99.

 

 
Essential Question: Do we live in a binary world?

Chap. 7

Boolean Expressions

  1. Correctly use both if and if-else statements. (Be as one with the four Common if-else Errors on p. 189.)

  2. Draw flowcharts for both if and if-else statements.

  3. Correctly use boolean relational  operators (p. 179, 181). == ,  > ,  < ,  >= ,  <= ,  !=

  4. Correctly use boolean logical operators (p. 179, 181). && ,  || , !

  5. Given a set of  logic gates write the associated boolean expression (p. 3).

  6. Write truth tables for "and", "or", and "xor" gates.

  7. Evaluate complex boolean statements using correct order of operators (p. 184).

  8. Correctly describe and use short-circuit evaluation (p. 184).

  9. Correctly use if-else-if tables for menus and selection processes like tax tables. (p. 187)

  10. Correctly use switch statements. (Be as one with the six points on p. 197)

Homefun read Sections ; Exercises 1-7  p.205-206

Programming Assignments: Lab 7.10 p. 190-195; Lab 7.12, p.198-202; exercises 14, 17 p.207

Tax Code Program II: rewrite the tax program entirely with if-else-if tables

 

Chap. 8

Methods Constructers and Fields

  1. Be as one with the nature of methods.

  1. Correctly write the header which defines a method inside a class.

access (public or private) returnType methodName (type argName1, ... type argNameN)

  1. Explain the nature of arguments.

  1. Correctly use overloaded methods. (Same name different arguments)

  1. Correctly use constructers.

  1. Correctly use copy constructors.

  2. State when the default constructer runs and how it initializes fields.

  1. Correctly use the "final" reserved word.

  2. Correctly initialize objects and use the new operator (p. 224).

Homefun: read Sections 8.1 - 8.5; Exercises 1-6  p. 248 - 249

 

  1. State which type of fields can be accessed and what type methods can be called using a static method. (p. 223).

  1. State which type of fields can be accessed and what type methods can be called using an instance method (p. 223).

  1. Correctly call both static and instance methods (p. 226).

  1. Compare the two ways to pass arguments to methods and constructers (p. 230).

  1. Correctly use return statements.

  2. Correctly use the access keywords public and private.

Homefun: read Sections 8.6 - 8.10; Exercises 8, 9, 13 p. 248 - 255
Programming Assignment: Case Study 8.12 p. 239; 19b, p.254 - 25

Exercise 18 will be on the next test