Koofers

Past Exam for COMP 128 - COMPUTER SCIENCE I at Wentworth Institute of Technology (WIT)

Exam Information

Material Type:Final
Professor:Staff
Class:COMP 128 - COMPUTER SCIENCE I
Subject:Computer Science
University:Wentworth Institute of Technology
Term:--
Keywords:
  • First Position
  • Test Function
  • Descriptions
  • Following Problem
  • String Class
  • Circumference
  • Specification
  • Manipulators
  • Function Definition
  • Default Constructor
Login / Sign Up to View Document
Preview Page 1Preview Page 2Preview Page 3Preview Page 4

Sample Document Text

Comp128 Final Exam Review 1) Functions – Know how to set up function headers following a problem specification, including return type and parameter lists. Know when to use the & and when not to. 2) Decisions – Know how to use if and switch statements. You should be able to convert from a nested if statement to a switch and vice versa. Know how to use comparative operators such as ==, !=, <, etc. to do various tests, including testing to see if a number is in a specified range. Know how to use the logical operators &&, || and !. 3) Loops – Know the 3 basic loop constructs: while, do .. while and for. You should be able to switch from one to the other. 4) Streams – Know how to use standard input and output, namely cin and cout. Understand how to open a file and stream to/from it. Understand how to use manipulators and stream flags to control the formatting of output. 5) Arrays – Know how to declare and initialize 1-D arrays. Be able to write functions, which are passed ...

Related Documents

Either...or Exam
Declaration Exam
Default Constructor Exam
Open-Closed Principle Exam
Possible Classes Exam
Possible Classes Exam
Possible Classes Exam
Possible Classes Exam
Possible Classes Exam
Possible Classes Exam
Possible Classes Exam
155, "/var/app/current/tmp/"