Exam1 - Sample Questions
Exam1 - Sample Questions
170 – Exam 1
Additional Information and Sample Questions
Date and Time
The exam will be held on October 7th,, 7:00am – October 8th, 7:00am. All work MUST BE COMPLETED AND SUBMITTED
BY 7:00am October 8th. You will have 90 total minutes to complete the exam.
Content
Material Covered in Exam 1:
You should focus on everything that is in the Learning Objectives documents. The text problems and external resources
are all listed there.
Canvas CS 170 FALL 2020 → Modules → Readings and Resources by Weeks (Weeks 1 – 4).
Format
• The exam may include True/False questions, Multiple Choice questions, Short Answer questions, and longer
answer questions that require you to show all work (number conversions), interpretation of HTML coding (both
understanding the logic flow and writing HTML code).
• The exam is in TWO parts:
o Short Answer: 25 questions, 1 point each. 40 minutes
o Longer answers (programs, conversions, etc.): 25 points, problem point values vary. 50 minutes.
• You may take a break between part 1 (40 minutes) and part 2 (50 minutes). You may take the parts in either
order.
• All questions are randomly chosen from pools of available questions.
• You have only ONE attempt for each part.
• Questions will be given one at a time and will be locked after you submit your answer. You cannot go back to a
question and change the answer.
Other requirements
• You are on your honor to complete the exam.
• The exam is open notes, but you CANNOT consult with any person in completing the exam.
• You CANNOT use any on-line tutoring sites for assistance. Please READ Rutgers Academic Integrity (AI) Policy.
Videos explaining these policies are posted in Course Information Module in Canvas. ANY incident of suspected
violation of these policies WILL BE REPORTED to the University.
• If you know that one of your classmates has violated the AI policies, it is your responsibility to report the
incident to the course coordinator ([email protected] ) or to your instructor, giving all of the details of
the situation. Your report of the incident will be considered confidential. The instructor will take the appropriate
Page 1 of 5
action and the incident will be investigated. Calculators, online calculation/conversion tools are not to be
utilized during the exam.
• If the problem indicates “SHOW ALL WORK” and you do not show your work, you will not receive credit for the
problem.
Sample Questions
These example questions below are intended to provide the student with a method to practice for the more complicated
problems on the actual exam. The problems are not intended to represent the limit of the material the student is expected
to know. The student is responsible for understanding all concepts covered in the Learning Objectives listed and should
be able to complete all assigned textbook problems. It is also assumed that the student has studied all external
resources listed in the documents described above.
Sample problems:
1. Complete the following table row by row. Use the appropriate processes and calculations to complete it. Show
your work below the table. For complete credit, show your work below the table.
7B
51
10010101
83
10110111
AD
2. 3.2) a. Write the query that will retrieve the shaded area in the following diagram:
Page 2 of 5
3. Write an alternative query which will find items including onion and either pineapple or ham.
4. Find and list six (6) syntax errors in the following HTML code. Also circle the location of those errors in the code
provided. Find and list six (6) syntax errors in the following HTML code. ONLY 1 ERROR PER LINE. Also circle the
location of those errors in the code provided. You can assume the HTML code above line 5 and below line 19 is
correct.
5 <head>
6 <-- This is a comment -->
7 <title This is the title of the page/>
8 <meta description=”This is the description of the webpage”/>
9 <style> body { background: red; } </style>
10 <head>
11 </body>
12 <h5> Welcome !!! </h6>
13 <div style color white>
14 <p
15 This is the story of a faulty web page
16 Click below to go to a yet another shady web page
17 <a href=”https://www.virus.net”><img href=”image.png” alt=”Image”/></a>
18 </div>
19 </body>
5. Write the <body> section of an HTML5 program that reproduces the web page shown below. The image,
“crackers.jpg”, is local and in the same folder as the HTML file you are creating. You must use the most
appropriate tags and styling in your program. You are NOT coding the black border.
Page 3 of 5
6. Explain the difference between LOSSY compression and LOSSLESS compression.
7. Give one benefit of using HEXIDECIMAL number representation over BINARY number representation.
Page 4 of 5
10. Give RGB values for the following colors:
a. BLACK
b. WHITE
c. A dark shade of gray
d. A dark shade of blue
e. RED
Page 5 of 5