Final Exam CS 1313 HW
HOWMUCH will CodeLab cost?
$25 per student for the entire semester
1. WHY are floppy disks so expensive per MB, compared to CD-RWs and DVD-RWs?
(a) Because floppy disks are outdated, and no one is producing them because there are better mediums that are more efficient and cheaper to mass produce. Well, an individual BD-RE has much greater capacity than an individual floppy (25-100 GB versus 1.44 MB), and the costs of manufacturing the actual physical objects are similar. And, because floppies are much less popular than CDs, they aren't manufactured in high quantities - so it's harder to amortize the high fixed costs of running the factory. So, the cost of a floppy per MB is much higher.
NAME TWO EXAMPLES of optical secondary storage media, and give an advantage and a disadvantage of each.
(a) Blu-Ray • Advantage: it can be read from, and it can be addressed arbitrarily • Disadvantage: it cannot be written to (b) CD-RW • Advantage: it's nonvolatile • Disadvantage: much slower than ROM:
WHAT are the two categories of primary storage that computers typically have?
(a) Cache (b) Main memory (RAM)
NAME TWO DIFFERENCES between main memory and cache.
(a) Cache is faster than main memory (RAM) (b) RAM is cheaper and bigger than cache
1. WHY do computers have cache storage?
(a) Cache is much faster than RAM, so the CPU doesn't have to wait nearly as long for stuff that's already in cache: it can do more operations per second!
WHAT is the SPEED in MB/sec, the MAXIMUM SIZE in GB and the PRICE per MB of the following storage media on a current PC?
(a) Cache: 145,600 MB/sec, 0.012 GB, $11.500000 (b) RAM: 21,000 MB/s, 33554.432 GB, $0.003000 (c) hard disk: 100 MB/s, 20000 GB, $0.000014 (d) USB 3 flash drive: 380 MB/s. 2000 GB, $0.000300 (e) CD-RW: 7.8 MB/s, 0.7 GB, $0.000900 (f) DVD-RW: 32 Mb/s, 4.7 GB, $0.000100 (g) floppy disk: 0.03 MB/s, 0.00144 GB, $0.900000
1. What does Moore's Law tell us?
(a) Computing speed and capacity double every 24 months.
NAME AND DESCRIBE each of the three components of a Central Processing Unit
(a) Control Unit: This component decides what to do next. (b) Arithmetic/Logic Unit: This component performs arithmetic and logical operations (c) Registers: These are memory-like locations inside the CPU where data and instructions reside that are being used right now.
NAME TWO THINGS that every main memory location has
(a) Each location has a unique integer address that never changes (b) Each location has a value aka the contents that the CPU can look at and change.
NAME three input devices (you are not limited to the ones listed in the lecture notes, but your choices must fit the definition).
(a) Keyboard (b) Mouse (c) Scanner
1. EXPRESS the approximate number of bytes in each of these to the nearest power of 10 (that is, as 10x for the appropriate value of x):
(a) Kilobyte: 10^3 (b) Megabyte: 10^6 (c) Gigabyte: 10^9 (d) Terabyte: 10^12 (e) Petabyte: 10^15 (f) Exabyte: 10^18 (g) Zettabyte: 10^21 (h) Yottabyte: 10^24
NAME TWO EXAMPLES of magnetic secondary storage media and give an advantage and a disadvantage of each.
(a) Magnetic Tape • Advantage: It is one of the cheapest per MB secondary storage media type compared to others. • Disadvantage: It has a much lower latency compared to other media which makes it less efficient than other secondary storage media with a similar price range. (b) Cassette • Advantage: The secondary storage media can de written and it is portable. • Disadvantage: However, it is very outdated which means that it is very slow and does not have as much storage capacity as other media within a similar price range.
1. NAME three output devices (you are not limited to the ones listed in the lecture notes, but your choices must fit the definition).
(a) Monitor (b) Printer (c) Speakers
HOW MANY different possible values can a set of 8 bits have?
(a) Possible integer values: 0 to 255 or -128 to127 (256 in total)
WHAT are the two categories of storage that computers typically have?
(a) Primary Storage (b) Secondary Storage
NAME TWO DIFFERENCES between primary storage and secondary storage.
(a) Primary storage is data being used a program that is currently running and Secondary storage is where data and instructions are stored to be used in the future. (b) Primary storage is volatile and secondary storage is nonvolatile.
When data and instructions reside in the following kinds of storage, WHEN are they expected to be used?
(a) Registers: where data and instructions reside that are being used right now. (b) Cache: where data and instructions reside when they are going to be used very very soon or have just been used. (c) Main memory: where data and instructions reside when a program that is currently running is going to use them at some point during the run (whether soon or not). (d) Secondary storage: Where data and instructions reside that are going to be used in the future.
NAME TWO DIFFERENCES between magnetic media and optical media.
(a) Some optical media can be written only once, and some can be rewritten multiple times while magnetic media can always be written and rewritten multiple times. (b) Magnetic media can be erased by magnets while optic media cannot.
NAME TWO EXAMPLES of solid state secondary storage media, and give an advantage and a disadvantage of each.
(a) Thumb Drive • Advantage: does not degrade overtime • Disadvantage: cannot be erased by magnets (b) Floppy Disk • Advantage: always can be read • Disadvantage: more expensive and outdated
Therefore, if you choose never to take the in-class exams, how many full letter grades are you choosing to give up?
1 letter grade if no exams done
NAME TWO DIFFERENCES between magnetic media and solid state media.
1. (a) Solid state medias' contents don't degrade much over time and Magnetic media does degrade relatively rapidly over time. (b) Magnetic media can be erased and solid state media cannot.
HOWMANY free CodeLab exercises will you be allowed, before you have to pay for the rest of the semester's CodeLab exercises?
10
2^40 is approximately 10 to what power?
10^12
1. 2^10 is approximately 10 to what power?
10^3
2^20 is approximately 10 to what power?
10^6
2^30 is approximately 10 to what power?
10^9
HOW MANY different possible values can an individual bit have?
2 possible values
What are the MINIMUM AND MAXIMUM number of programming projects that might be assigned?
5-10
When you come to lecture, lab or help sessions, and when you work on course assignments on your own, WHICH CS1313 materials should you bring with you?
ALWAYS ALWAYS ALWAYS bring ALL CS1313 materials with you
Which of the following is the correct way to calculate your overall percentage score for the semester?
Add together all your points for all assignments of all types, then add together all the maximum points for all assignments of all types, then divide the two sums?NO Add together all your points for all assignments of all types? NO For each assignment type (for example, quiz, programming project, CodeLab), do the following: For each assignment type, add up all your points for all assignments of that type. For each assignment type, add up all the maximum possible points for all assignments of that type. For each assignment type, divide the first sum by the second sum to get the fraction of points that you got for that assignment type. For each assignment type, multiply that quotient by the weight for that assignment type (for example, 10% for quizzes, 45% for programming projects), to get the weighted fraction of points for that assignment type. Then, add together the weighted fractions of points for all assignment types. YES
The word "bit" is a contraction of WHAT PHRASE?
Binary digit
AT WHAT E-MAIL ADDRESS will you receive course e-mails?
Course e-mails are sent to your official OU e-mail address
YES OR NO: Should you delete any CS1313-related e-mail, EVER?
DON'T delete CS1313 e-mails, EVER
Every word that Dr. Neeman writes down is ... ?
EVERY WORD THAT DR.NEEMAN WRITES DOWN PURE GOLD
WHAT ITEMS are fair game for exam questions?
Everything covered in lectures, readings, labs, homeworks, programming projects and short programming assignments (CodeLab) is fair game unless specifically stated otherwise.
What is the LAST DAY to add CS1313?
Fri Aug 25
What is the LAST DAY to withdraw from CS1313 with an automatic grade of W?
Fri Nov 10
Suppose that a programming project is worth 250 points and is due by 10:20am Wed Sep 6. If you submit it at 10:20am Fri Sep 8,WHAT IS THEMAXIMUMPOSSIBLE SCORE that you can get on it (excluding bonus points, if any)?
If you turn it in at 10:21am Wed Sep 6 through 10:20 am Fri Sep 8, then you will lose 20% of its value right off the top. Max score: 80% (200 pts)
WHAT are the two categories of I/O devices that computers typically have?
Input Devices Output Devices
1. In the word MULTICORE, what does "core" refer to?
It refers to the multiple, independent "brains," in a chip known as the multicore CPU.
When in doubt ... ?
LOOK IT UP, DON'T MAKE IT UP
Suppose that you receive 99.9% credit on all assignments (including the final exam) except in-class exams, but 0% on in-class exams and bonus assignments. WHAT IS THE MAXIMUM LETTER GRADE that you can receive for the course (assuming that grades aren't curved, which probably they won't be)?
Max grade for everything but exams: B
Suppose that you receive 99.9% credit on all assignments (including exams) except lecture/ lab attendance, but 0% on lecture/lab attendance and bonus assignments. WHAT IS THE MAXIMUM LETTER GRADE that you can receive for the course (assuming that grades aren't curved, which probably they won't be)?
Max grade if all except Lab is done: B
What are the FULL NAMES (first/given name and last/family name) of the TAs?
Mohammad Basiri and Divya Pinnamaneni
Will you get credit for attending a lab session other than the one for which you are officially registered?
NO Credit for attending other labs I am not registered in
YES OR NO: Should you delete ANY CS1313-related file or e-mail, EVER?
Never delete any CS1313 file or email ever
YES OR NO: IS IT WISE to start working on a programming project a week or less before its due date?
No
WHAT is the section access code for CodeLab this semester?
OKLA-31070-ACWB-58
WHICH RESOURCES must you reference on an assignment?
Outside sources from class should be referenced on assignments
UNDER WHAT CIRCUMSTANCES may you telephone the main offices of the School of Computer Science, the College of Engineering, or Information Technology?
Please DON'T call the main offices of the School of Computer Science, the Gallogly College of Engineering, or OU Information Technology UNDER ANY CIRCUMSTANCES
YES OR NO: Should you count on grades being curved to your benefit?
Should not count on grading curves.
If you withdraw after the date above, UNDER WHAT CIRCUMSTANCES will you get a withdrawal grade of W?
Starting Mon Nov 13, undergraduates will receive a withdrawal grade of W only with an overall passing grade (at least a D) on assignments graded to date
WHAT KINDS OF ASSIGNMENTS do the rules about plagiarism (above) apply to?
THE RULES AGAINST PLAGIARISM APPLY TO ALL ASSIGNMENTS.
WHEN will the final exam be held?
Tue Dec 12, 8:00-10:00 am, Sarkeys Energy Center N202
When working on a CS1313 assignment, HOW MUCH of the assignment description should you read?
When working on CS1313 assignment, ALWAYS ALWAYS ALWAYS read EVERY SINGLE WORD
YES OR NO: ARE YOU PERMITTED to discuss homework questions, short programming (CodeLab) assignments and programming projects with your classmates?
Yes
Is a calculator a computer? EXPLAIN.
Yes, because a calculator is a "programmable electronic device that can store, retrieve and process data."
HOWOFTEN should you check the course website?
You should check the course website AT LEAST twice a week, but daily is even better
HOWOFTEN should you check your e-mail?
You should check your email AT LEAST twice a week, but daily is even better
UNDER WHAT CIRCUMSTANCES may you visit Dr. Neeman in his office?
ZOOM OR IN-PERSON ONE-ON-ONE VISITS(off schedule): BY APPOINTMENT ONLY,MADE AT LEAST 24 HOURS IN ADVANCE
NAME TWO DIFFERENCES between a bit and a byte
a) Bits aren't individually addressable like a byte (b) A byte can also represent characters while a bit cannot
WHAT are the three major categories of hardware that computers typically have?
a) Central Processing Unit b) (CPU) Storage c) Input/Output (I/O)
Therefore, if you choose never to do the CodeLab assignments, how many full letter grades are you choosing to give up?
a. 1 letter grade if CodeLab is never done
Therefore, if you choose never to attend any lecture/lab sessions, how many full letter grades are you choosing to give up?
a. 1 letter grade if Lab/Lecture never attended
Therefore, if you choose never to take the quizzes, how many full letter grades are you choosing to give up?
a. 1 letter grade if quizzes are never done (89)
HOWMANY in-class exams will there be?
a. 2 In-Class Exams (15% for both)
Therefore, if you choose never to do the programming projects, how many full letter grades are you choosing to give up?
a. Choosing to give up 4 letter grades for not doing PP
IN WHICH BUILDING is Dr. Neeman's office located?
a. Dr.Neeman's office location: Engineering Laboratory 212 (on the southeast corner of Asp Ave & Felgar St, a block south of Carson Engineering Center)
YES OR NO: Are you required to take the final exam, even if you already have enough assignment credit to guarantee you the overall letter grade for the course that you want?
a. Final Exam is required even if you have enough points for desired grade
WHEN will Dr. Neeman's CS 1313 help sessions be held?
a. Henry Neeman: Mondays 12:00 noon-3:00 pm, via Zoom, starting Mon Aug 28
Suppose that you receive 99.9% credit on all programming projects AND 99.9% credit on all quizzes AND 99.9% credit on all labs, but 0% on all other assignments (including bonus assignments). WHAT IS THE MAXIMUM LETTER GRADE that you can receive for the course (assuming that grades aren't curved, which probably they won't be)?
a. If ALL PP, Quizzes, and Labs are done, max grade: D
Suppose that you receive 99.9% credit on all assignments (including exams) except CodeLabs and bonus assignments but 0% on all CodeLab and bonus assignments. WHAT IS THE MAXIMUM LETTER GRADE that you can receive for the course (assuming that grades aren't curved, which probably they won't be)?
a. If all except CodeLabs is done max grade: B
Suppose that you receive 99.9% credit on all assignments (including exams) except quizzes and bonus assignments but 0% on all quizzes and bonus assignments. WHAT IS THE MAXIMUM LETTER GRADE that you can receive for the course (assuming that grades aren't curved, which probably they won't be)?
a. If all except quizzes is 99.9, max grade: B
Suppose that a programming project is worth 250 points and is due by 10:20am Wed Sep 6. If you submit it at 10:21am Fri Sep 8,WHAT IS THEMAXIMUMPOSSIBLE SCORE that you can get on it (excluding bonus points, if any)?
a. If you turn it in at 10:21am Fri Sep 8 through 10:20 am Mon Sep 11, then you will lose 40% of its value right off the top. Max grade: 60% (150 pts)
WHERE will you find information on how to register for CodeLab?
a. Instructions on how to register for and use CodeLab are posted on the CS1313 website
WHAT OVERALL PERCENTAGE SCORE for the course will you need to be guaranteed each of these letter grades? i. A ii. B iii. C iv. D
a. Letter Grades i. A: G > 90% ii. B: 80% < G < 90% iii. C: 70% < G < 80% iv. D: 60% < G < 70%
Suppose that you receive 99.9% credit on all assignments EXCEPT programming projects and bonus assignments, but 0% on all programming projects and bonus assignments. WHAT IS THE MAXIMUM LETTER GRADE that you can receive for the course (assuming that grades aren't curved, which probably they won't be)?
a. Max Grade for doing everything but Programming Projects: F
Suppose that you receive 99.9% credit on all programming projects, but 0% on all other assignments (including exams and bonus assignments). WHAT IS THE MAXIMUM LETTER GRADE that you can receive for the course (assuming that grades aren't curved, which probably they won't be)?
a. Max Grade for only doing Programming Projects(PP): F
What is the RELATIONSHIP between homeworks and quizzes?
a. Quiz questions will be taken WORD-FOR-WORD from homeworks
NAME a device that does BOTH input and output (you are not limited to the ones listed in the lecture notes, but your choice must fit the definition).
a. Touchscreen , joystick that vibrates
UNDER WHAT CIRCUMSTANCES may you telephone Dr. Neeman?
a. Unless it's an emergency, never phone Dr.Neeman
What is the BEST WAY to improve your understanding of the material covered in CS1313 lectures?
a. You'll notice, as the semester progresses, that the course lecture notes(available for downloading from the course website) contain many short example programs. Type them in, compile them and run them, and you'll understand the course material much better
YES OR NO: Should homeworks be submitted for a grade?
a. homeworks WON'T be collected or graded
What is the URL (web address) of the course website?
http://cs1313.ou.edu/
For the two categories of penalties for an academic misconduct "full violation," what is the MAXIMUM POSSIBLE PENALTY for each, as specified on the OU Provost's Academic Integrity webpage (on the tab What Kind of Penalties Can Result from Cheating)?
i. Grade penalty by instructor: an F in the course ii. Expulsion in the case of repeat or especially bad offenses
What are the FOUR KINDS OF PLAGIARISM ("IT IS PLAGIARISM TO . . . "), as specified on the OU Provost's Academic Integrity for Students webpage (on the Plagiarism tab)?
i. IT IS PLAGIARISM TO COPY WORDS AND PRESENT THEM AS YOUR OWN WRITING ii. IT IS PLAGIARISM TO COPY WORDS, EVEN IF YOU GIVE THE SOURCE, UNLESS YOU ALSO INDICATE THAT THE COPIED WORDS ARE A DIRECT QUOTATION. iii. IT IS PLAGIARISM TO COPY WORDS AND THEN CHANGE THEM A LITTLE, EVEN IF YOU GIVE THE SOURCE. iv. EVEN IF YOU EXPRESS THEM IN YOUR OWN WORDS, IT IS PLAGIARISM TO PRESENT SOMEONE ELSE'S IDEAS AS YOUR OWN.
For each lab section, what is the SECTION NUMBER, DAY OF THE WEEK, TIME OF DAY, BUILDING AND ROOM NUMBER(S), AND TA(s)?
i. LAB SECTIONS ii. Fridays in Carson Engineering Center 205 + 206 starting Fri Aug 25 iii. Section 011: Fridays, Carson 205 + 206, 11:30am -12:20pm, Mohammad Basiri iv. Section 012: Fridays, Carson 205 + 206, 10:30am -11:20am, Divya Pinnamaneni v. Section 013: Fridays, Carson 205 + 206, 8:30am - 9:20am, Divya Pinnamaneni vi. Section 014: Fridays, Carson 205 + 206, 1:30pm- 2:20pm, Mohammad Basiri
IN WHICH lab section are you officially registered (or you may mark NOT YET REGISTERED)?
i. Lab 013 ii. Fridays 8:30 am-9:20am Carson 205+206: Divya Pinnamaneni
WHAT PERCENTAGE of your grade will come from ... i. ... programming projects? ii. ... short programming (CodeLab) assignments? iii. ... lecture/lab attendance? iv. ... quizzes? v. ... in-class exams? vi. ... the final exam?
i. Programming Projects : 45% ii. Short Program (CodeLab): 10% iii. Lecture/Lab attendance: 10% iv. Quizzes: 10% v. 2 In-class Exams: 15% vi. Final Exam: 10%
WHEN will the in-class exams be held?
i. Wed Sep 27, 9:30-10:20 am, Sarkeys Energy Center N202 ii. Wed Nov 1, 9:30-10:20 am, Sarkeys Energy Center N202
What are the TWO CATEGORIES OF PENALTIES for an academic misconduct "full violation," as specified on the OU Provost's Academic Integrity webpage?
i. the grade penalty ii. the University penalty (sanction)
YES OR NO: ARE YOU PERMITTED to copy any part of someone else's program?
no
YES OR NO: ARE YOU PERMITTED to develop programs with your classmates?
no
YES OR NO: ARE YOU PERMITTED to help your classmates debug their programs, or to be helped by them in debugging yours?
yes
YES OR NO: ARE YOU PERMITTED to study for exams with your classmates?
yes
YES OR NO: If a friend, classmate, acquaintance, relative or professor helps you with an assignment, MUST YOU REFERENCE THEM on that assignment, EVEN IF THE ASSIGNMENT DOESN'T PROVIDE A SPACE FOR REFERENCES?
yes
YES OR NO: If you and a classmate produce substantially the same program for a programming project — regardless of how this situation came about — WILL THAT BE TREATED AS ACADEMIC MISCONDUCT by both of you?
yes
21. WHAT IS THE DIFFERENCE between an input device and an output device?
• Input Devices transfer data into the computer and Output Devices transfer data out of the computer
WHAT does the term I/O stand for?
• Input/Output