DOC PREVIEW
Purdue CS 15900 - CS 15900 Credit Exam

This preview shows page 1-2-3-4-5-6 out of 17 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 17 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 17 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 17 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 17 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 17 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 17 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 17 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

CS 15900 Credit ExamAn increasing number of students entering the First Year Engineering program at Purdue University arebringing with them previous programming experience and a many of these students are interested indemonstrating that their experience is sufficient to earn credit for CS 15900.What is the format of the exam?Fifty multiple-choice questions will be selected from a large pool of problems that cover the material introducedin CS 15900. The exam will be taken on Blackboard, be limited to two hours, and the only acceptable resourcesfor the exam are an ASCII table and an operator precedence table. Students are expected to be at a level of mathematics that includes preparation for calculus. No calculators are permitted and most of the expressions to evaluate will involve addition, subtraction, multiplication, division, and modulus.Questions on the exam will ask students to interpret code and understand the fundamental terminology of the C programming language. There is no code writing on the exam.What is required to pass the exam?The credit exam is similar in content to a final exam offered in CS 15900. The average on the final exam in a typical semester is around 70% and this will be considered the threshold necessary to establish credit by exam.What advice do you have for students who have previously programmed in another language like JAVA or C++?The credit exam is primarily a C language exam. The differences between programming languages at times canbe minor but the details matter and this is what the exam will evaluate. A student who successfully completes CS 15900 on campus will understand these details and those attempting to establish credit by exam will be held to the same standard. Future courses that you may take in Engineering will assume mastery of the material in CS 15900. A generic previous programming experience may be insufficient for success in future courses.Why is my transfer credit not evaluated as equivalent to CS 15900?The interpretation of equivalent has been taken to mean an identical set of topics and languages. Most courses taken at other institutions fail to meet this mark or a level of rigor that is expected from an experience at Purdue University. Passing this credit exam will demonstrate that the experience and knowledge retained is sufficient to establish credit in CS 15900.What other considerations should a student take into account prior to attempting the credit exam?There is only ONE opportunity to earn the passing score. It is important to emphasize that future classes will assume an equivalent experience to CS 15900. There is no benefit to moving into a higher level course only to withdraw or earn a poor grade because the previous experience was insufficient.A set of problems similar to those asked on the exam have been provided for your review.• The answers are included at the end of the exam document.What specific material is covered in CS 15900?• From the official text of the course (ISBN-13: 978-0-534-49132-1):◦ Chapter 1 – Introduction to Computers◦ Chapter 2 – Introduction to the C Language◦ Chapter 3 – Structure of a C Program◦ Chapter 4 – Functions◦ Chapter 5 – Selection – Making Decisions◦ Chapter 6 – Repetition◦ Chapter 8 – Arrays▪ Includes a knowledge of the searching and sorting algorithms as introduced in the text.◦ Chapter 9 – Pointers▪ Section 9.1 only◦ Chapter 10 – Pointer Applications ▪ Sections 10.1 – 10.4 (malloc)◦ Chapter 11 – Strings▪ Sections 11.1 – 11.5Is there any MATLAB or Octave on the credit exam?• Yes, you should be familiar with external file functions including the standard fopen, fclose, fscanf, feof. Only a small number of questions (1-3) related to these file functions will appear on thecredit exam.• A good resource for this material can be found on-line:◦ https://www.gnu.org/software/octave/octave.pdfCS 15900 Test-Out Practice Exam1. Which of the following statements regarding constants is FALSE?A. When evaluated in an expression both variable and constant values have data types.B. A literal constant is an unnamed constant used to specify data.C. The use of symbolic/defined constants is encouraged to give meaning to operands in an expression.D. None of the above.2. Which of the following statements regarding the selection of a data type for a variable is FALSE?A. The operations that can be performed on a value is limited by its type.B. The amount of memory necessary to store a value depends on its type.C. How a value is stored in the memory of the computer depends on its type.D. None of the above.Use the program below for problems 3 – 4#include<stdio.h>#define SHORT_PI 3.14int main(){ double diameter = 2.1; double circumference; double area; int precision; int width; circumference = SHORT_PI * diameter; area = circumference * diameter; width = 21 - circumference; precision = (area - (int) area) * 5; printf("-=-=-=-=-=-=-=-=-=-=-=-=-=-\n"); printf("Circumference: %12.*lf\n", precision, circumference); printf("-=-=-=-=-=-=-=-=-=-=-=-=-=-\n"); printf("Area: %*lf\n", width, area); return(0);}3. Which of the following is the output generated by the first two print statements in the program above?A-=-=-=-=-=-=-=-=-=-=-=-=-=-Circumference: 6.5940C-=-=-=-=-=-=-=-=-=-=-=-=-=-Circumference: 6.5940B-=-=-=-=-=-=-=-=-=-=-=-=-=-Circumference: 6.594D-=-=-=-=-=-=-=-=-=-=-=-=-=-Circumference: 6.5944. Which of the following is the output generated by the last two print statements in the program above?A-=-=-=-=-=-=-=-=-=-=-=-=-=-Area: 13.847400C-=-=-=-=-=-=-=-=-=-=-=-=-=-Area: 13.847400B-=-=-=-=-=-=-=-=-=-=-=-=-=-Area: 13.8474D-=-=-=-=-=-=-=-=-=-=-=-=-=-Area: 13.8474Use the code segment below for problems 5 – 8int x = 7;int y = 10;int z = 5;int result = 0;result = ++y - 10 || z - 5 && x++;result += y++ - 11 || z++ - 5 && x++;result += y + 1 > 11 && (z++ >= 6 || x++);printf("result: %d\n", result);printf("x: %d\n", x);printf("y: %d\n", y);printf("z: %d\n", z);5. Which of the following is the first line of output generated by the code segment above?A. result: 0B. result: 1C. result: 2D. None of the above.6. Which of the following is the second line of output generated by the code segment above?A. x: 7B. x: 8C. x: 9D. None of the above.7. Which of the following is the third line of output generated by the code segment


View Full Document

Purdue CS 15900 - CS 15900 Credit Exam

Download CS 15900 Credit Exam
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view CS 15900 Credit Exam and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view CS 15900 Credit Exam 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?