CS 1428 Exam I Review.

Slides:



Advertisements
Similar presentations
True or false A variable of type char can hold the value 301. ( F )
Advertisements

1 CS 105 Lecture 8 Strings; Input Failure Mon, Mar 7, 2011, 3:39 pm.
1 9/24/07CS150 Introduction to Computer Science 1 Relational Operators and the If Statement.
Wednesday, 12/11/02, Slide #1 CS 106 Intro to Comp. Sci. 1 Wednesday, 12/11/02  QUESTIONS??  Today: CLOSING CEREMONIES!  HW #5 – Back Monday (12/16)
Wednesday, 10/9/02, Slide #1 CS 106 Intro to CS 1 Wednesday, 10/9/02  QUESTIONS ??  Today:  Discuss HW #02  Discuss test question types  Review 
1 10/9/06CS150 Introduction to Computer Science 1 for Loops.
1 CS150 Introduction to Computer Science 1 Relational Operators and the If Statement 9/22/08.
 200 Total Points ◦ 74 Points Writing Programs ◦ 60 Points Tracing Algorithms and determining results ◦ 36 Points Short Answer ◦ 30 Points Multiple Choice.
M. Taimoor Khan #include void main() { //This is my first C++ Program /* This program will display a string message on.
Exam Format  130 Total Points  10 Points Short Answer  15 Points Fill in the Blank  25 Points T/F  60 Points Multiple Choice  20 Points Matching.
Agenda Review C++ Library Functions Review User Input Making your own functions Exam #1 Next Week Reading: Chapter 3.
Exam Format  90 Total Points  60 Points Writing Programs  25 Points Tracing Code/Algorithms and determining results  5 Points Short Answer  Similar.
Exam 1 Review CS Total Points – 60 Points Writing Programs – 20 Points Tracing Algorithms, determining results, and drawing pictures – 40 Points.
Final Exam Review CS Total Points – 60 Points Writing Programs – 50 Points Tracing Algorithms, determining results, and drawing pictures – 50.
Exam Format  105 Total Points  25 Points Short Answer  20 Points Fill in the Blank  15 Points T/F  45 Points Multiple Choice  The above are approximations.
 140 Total Points ◦ 100 Points Writing Programs ◦ 24 Points Tracing Algorithms and determining results ◦ 16 Points Short Answer  Similar to quizzes.
 200 Total Points ◦ 75 Points Writing Programs ◦ 60 Points Tracing Algorithms and determining results ◦ 35 Points Short Answer ◦ 30 Points Multiple Choice.
1 09/27/04CS150 Introduction to Computer Science 1 Let ’ s all Repeat Together.
1 10/3/05CS150 Introduction to Computer Science 1 Let ’ s all Repeat Together.
CS 1308 Exam 2 Review. Exam Format 110 Total Points 24 Points Short Answer 28 Points Fill in the Blank 16 Points T/F 36 Points Multiple Choice The above.
Final Exam Review CS Total Points – 20 Points Writing Programs – 65 Points Tracing Algorithms, determining results, and drawing pictures – 50.
Midterm Review Tami Meredith. Primitive Data Types byte, short, int, long Values without a decimal point,..., -1, 0, 1, 2,... float, double Values with.
Exam 2 Review CS 3358 Data Structures. 90 Total Points – 50 Points Writing Programs – 25 Points Tracing Algorithms, determining results, and drawing pictures.
CS 1428 Exam I Review. Exam Format 130 Total Points – 40 Points Writing Programs – 30 Points Tracing Algorithms and determining results – 20 Points Short.
CS 1428 Final Exam Review. Exam Format 200 Total Points – 60 Points Writing Programs – 45 Points Tracing Algorithms and determining results – 20 Points.
Final Exam Review CS 3358.
Basic concepts of C++ Presented by Prof. Satyajit De
CS 1308 Exam I Review.
Computing Fundamentals
Chapter 2 Assignment and Interactive Input
Test Review Computer Science History
CS 1428 Exam I Review.
CS 1428 Exam II Review.
CS 1308 Exam 2 Review.
Exam 2 Review CS 3358 Data Structures.
CS 2308 Final Exam Review.
CS 2308 Exam I Review.
CS 2308 Exam II Review.
CS 2308 Exam II Review.
CS 2308 Exam II Review.
Exam 2 Review CS 3358 Data Structures.
CS 1428 Exam I Review.
Exam 1 Review CS 3358.
CS 2308 Exam I Review.
C++ fundamentals Lecture 1, Chapter 2 – pp /22/2018 Y K Choi.
CS 1428 Exam II Review.
CS 1430: Programming in C++ No time to cover HiC.
Review for Midterm Exam
CS 2308 Exam I Review.
Exam 1 Review CS 3358.
Counting Loops.
Programming Funamental slides
Exam 2 Review CS 3358 Data Structures.
CS 2308 Exam II Review.
CS 1428 Final Exam Review.
Review for Midterm Exam
Review for Midterm Exam
CS 1428 Final Exam Review.
Review for Midterm Exam
Variables In today’s lesson we will look at: what a variable is
Review for Midterm Exam
EE 312 Exam I Review.
Fundamental Programming
EE 312 Final Exam Review.
General Computer Science for Engineers CISC 106 Lecture 03
FOR statement a compact notation for a WHILE e.g. sumgrades = 0;
EE 312 Exam I Review.
CS 1308 Exam 2 Review.
CS 2308 Final Exam Review.
EE 312 Exam I Review.
Presentation transcript:

CS 1428 Exam I Review

Exam Format 90 Total Points All point totals are approximations 40 Points Writing Programs 25 Points Tracing Algorithms and determining results 10 Points Short Answer 20 Points Fill in the Blank All point totals are approximations Similar to programming assignments and programs from lecture

Example Programming Problem Write a program that reads a number of golf scores followed by that number of scores from a file named “scores.txt” Total the scores as you read them in and print out the average score to the screen. (Note: This problem is more difficult than the problems on the exam.)

Example Tracing Problem What will the EXACT output of the following program be? int foo = 9; string str = "Hey!"; float foo2 = 5.7; foo2 = foo - foo2; if (foo > foo2) cout << "Hello!"; else if (foo < foo2) cout << foo2; else cout << foo; cout << endl; cout << "foo2 is: " << foo2 << endl;

Example Short Answer Why is it a bad idea to compare two floating point numbers (e.g. doubles) with the equals (==) operator?

Chapter 1 0 points Types of errors Terminology Bits, bytes kilo, mega, giga, tera What do they mean? Machine language, assembly language, high- level language Von Neumann architecture Problem solving process Types of errors Important stuff, but not covered on the exam

Chapter 2 50 Points Variables and Identifiers Assignment Valid identifiers Data types Integer types Floating Point types Characters Boolean Assignment Arithmetic Operators Make sure you understand the mod(%) function

Chapter 3 30 Points cin Mathematical expressions static_cast Constants With prompts Mathematical expressions Order of precedence Combined operators (e.g. += and ++) static_cast Constants Mixed mode operations (mixing floats and ints) File input and output

Chapter 4 25 Points Relational operators Truth tables if statements Logical operators && || ! if statements if-else if-else-if

Functions 15 Points Know how to write a function Header (signature) Parameters Return statement Know how to call a function Know how to use the return value

Loops 10 Points Understand the “for” loop Initialize, conditional, update Body of the loop Review the programs that use loops

How to Study Rewrite all the programs. Redo labs. Learn by doing and recognizing patterns. Don’t stay up late!! Get some sleep and eat a good breakfast.

What to bring Pencils and erasers We will provide scratch paper No calculators

Questions