SampleMidterm1
.pdf
keyboard_arrow_up
School
University of California, San Diego *
*We aren’t endorsed by this school
Course
102
Subject
Computer Science
Date
Dec 6, 2023
Type
Pages
6
Uploaded by LieutenantPencil12691
DSC 102 Winter 2020 Midterm Exam
Full Name :
Student ID :
INSTRUCTIONS
1. You have 80 minutes to complete this exam.
2. Mark your answers
on the bubble sheet
by filling the correct options
using a dark pen or pencil.
Please ensure your markings are
dark,
crisp, and not smudged
.
3. You can have up to 2 letter/A4-sized sheets of notes, formulae, etc.
Apart from this, the exam is closed book/notes/electronics/peers.
4. Please wait until being told to start reading and working on the exam.
5. When you finish or when the time is over,
return both
this question
booklet and your bubble sheet.
1
Part 1. [6 x 1 = 6pts]
For each statement below, indicate if it is True (pick option A) or
False (pick option B).
1. An SQL query is a string.
2. In the task parallelism paradigm discussed in class, if no worker has any idle times
in the schedule, we will likely get linear speedup for the workload.
3. Serverless setups in the cloud can substantially reduce resource wastage compared
to classical IaaS.
4. In the scaleup plot (weak scaling), the dataset size is fixed as the factor is varied.
5. Data processing programs need to go through the OS System Call API to read text
files but can typically bypass that API if they want to read binary files.
6. All threads of a multi-threaded process share the same address space.
Part 2. [12 x 2 = 24pts]
Answer the following questions. Only one option must be picked–
pick the best one.
7. Which of the following is typically
not
considered one of the “3 Vs of Big Data”?
(A) Variety
(B) Vitality
(C) Velocity
(D) Volume
(E) Both B & C
8. Suppose you are given 4 models for a prediction task: M1, M2, M3, and M4 with
respective prediction errors of 12%, 8%, 15%, and 5% (lower is better) and respec-
tive monetary costs for building and deployment of 10K, 40K, 20K, and 90K dollars
(lower is better). Which model is
not
Pareto-optimal when prediction errors and
monetary costs are both important?
(A) M1
(B) M2
(C) M3
(D) M4
(E) None of these
9. Which of the following is
not
a typical file format to store structured data?
(A) CSV
(B) JSON
(C) TSV
(D) JPEG
(E) Both A & B
10. Which of the following properties of data processing programs is sometimes ex-
ploited to help reduce runtimes?
(A) Spatial locality of reference
(B) Temporal locality of reference
(C) Parallelism in computations
(D) All of A, B, & C
(E) None of these
2
11. What is the OS term for a virtual slot of DRAM that holds data read in from disk?
(A) Page frame
(B) File frame
(C) Folder frame
(D) Disk frame
(E) Register
12. Which of the following is typically considered SaaS in cloud jargon?
(A) EC2
(B) S3
(C) EBS
(D) Lambda
(E) SageMaker
13. Which of the following storage devices in the memory hierarchy typically has a
dichotomy for random vs sequential access latency?
(A) CPU Caches
(B) DRAM
(C) Magnetic Hard Disk
(D) Flash SSD
(E) None of these
14. Suppose you spin out an EC2 cluster and read a whole dataset from S3 to each
node’s DRAM. What form of parallelism is this typically called?
(A) Shared Nothing
(B) Shared Disk
(C) Shared Memory
(D) Both B & C
(E) None of these
15. Which of the following tools is custom-designed for tensor dataflow graphs?
(A) RDBMSs
(B) Python Pandas
(C) PyTorch
(D) Both A & B
(E) All of A, B, & C
16. Among these popular two-dimensional structured data models, which one has no
in-built notion of ordering among the rows?
(A) Matrix
(B) Relation
(C) DataFrame
(D) Both A & B
(E) Both B & C
17. Which component of the access latency for reading a disk block from a magnetic
hard disk is primarily affected by the RPM of the disk?
(A) Rotation delay
(B) Seek time
(C) Transfer time
(D) Both A & B
(E) None of these
18. How many positive integers are there with exactly 2 digits in decimal representation
that also have the exact same 2 digits in hexadecimal representation?
(A) 0
(B) 9
(C) 10
(D) 15
(E) 16
3
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Related Questions
The area of the window depends on the window space factor.a) trueb) false
arrow_forward
Submission & Rubric
Description
↑
Purpose
Each module will have a group discussion that will
help you to see how the math we are studying in this
class may be applied to various majors including your
own. By actively participating in a conversation with
your classmates about these posts, you will gain a
deeper understanding of the course content and
improve your ability to express your ideas in writing.
Use these directions to guide your participation in
each discussion.
Prompt
Throughout the course, you have been exploring just
how mathematics can and is used in your major.
Share with the class at least one way that
mathematics is used in your major or explain what
you learned about how mathematics is used in your
field of study. Be sure to include your area of study in
your post.
arrow_forward
Explain how to provide keyboard access to a text box.
arrow_forward
Describe the purpose of the “question and answer” slide
arrow_forward
File extensions' functionality and appearance in your document are different.
arrow_forward
Problem Statement
You are required to Download and Install the Hello theme into your WordPress site. After theme installation, you are required to Import the demo content of theme.
arrow_forward
Computer Science
TECHNOLOGY:
Cultural Diversity Infographic: Create an infographic (a display of information in an easy-to-understand graphical representation of data) that depicts the cultural diversity of three different regions in America of your choosing. Additionally, research one of the cultures of those represented in each region.
Census (where to find information about America) Examples of an infographic
Tool to create infographics: Canva (how to create an infographic)
arrow_forward
Psuedocode that calculates total time taken to complete something:
EX: Start time - 10:31am, End time - 1:37pm
Total time - 3:06
arrow_forward
Fill in the blank
When the markdown is added to the selling price, you may determine the price of an item. (clue 8 letters)
arrow_forward
On technical drawings, what font type is used?
arrow_forward
Create a Sudoku Game In Visual Studio using Windows Form Application.
- Must have Timer
- Records Time Played from previous games
arrow_forward
Clipping and the Clip window must be defined.
arrow_forward
Blue screen errors occur when which of the following procedures encounters a problem?
arrow_forward
How long does the mouse pointer remain on a jagged line while editing code?
arrow_forward
The Clip window and its operation
arrow_forward
The Freeze Panes feature is useful when navigating worksheets that are too large to
fit on your screen.
True
False
arrow_forward
Blue screen errors occur when which of the following procedures encounter a problem?
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L
Related Questions
- The area of the window depends on the window space factor.a) trueb) falsearrow_forwardSubmission & Rubric Description ↑ Purpose Each module will have a group discussion that will help you to see how the math we are studying in this class may be applied to various majors including your own. By actively participating in a conversation with your classmates about these posts, you will gain a deeper understanding of the course content and improve your ability to express your ideas in writing. Use these directions to guide your participation in each discussion. Prompt Throughout the course, you have been exploring just how mathematics can and is used in your major. Share with the class at least one way that mathematics is used in your major or explain what you learned about how mathematics is used in your field of study. Be sure to include your area of study in your post.arrow_forwardExplain how to provide keyboard access to a text box.arrow_forward
- Describe the purpose of the “question and answer” slidearrow_forwardFile extensions' functionality and appearance in your document are different.arrow_forwardProblem Statement You are required to Download and Install the Hello theme into your WordPress site. After theme installation, you are required to Import the demo content of theme.arrow_forward
- Computer Science TECHNOLOGY: Cultural Diversity Infographic: Create an infographic (a display of information in an easy-to-understand graphical representation of data) that depicts the cultural diversity of three different regions in America of your choosing. Additionally, research one of the cultures of those represented in each region. Census (where to find information about America) Examples of an infographic Tool to create infographics: Canva (how to create an infographic)arrow_forwardPsuedocode that calculates total time taken to complete something: EX: Start time - 10:31am, End time - 1:37pm Total time - 3:06arrow_forwardFill in the blank When the markdown is added to the selling price, you may determine the price of an item. (clue 8 letters)arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- COMPREHENSIVE MICROSOFT OFFICE 365 EXCEComputer ScienceISBN:9780357392676Author:FREUND, StevenPublisher:CENGAGE L
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L