12/8/25, 1:13 PM
Exam 1 - Sample Quiz: CSCI 3308-F25:Software Dev Methods and Tools
Exam 1 - Sample Quiz
Due No due date
Points 18
Questions 12
Time Limit None
Allowed Attempts Unlimited
Instructions
This quiz does is not representative of the entire curriculum for the midterm. The purpose of this quiz is
to introduce you to the nature of questions you may expect on the midterm.
Take the Quiz Again
Attempt History
LATEST
Attempt
Time
Score
Attempt 1
54 minutes
16 out of 18 *
* Some questions not yet graded
* Some questions not yet graded
Submitted Oct 6 at 11:11pm
Correct answer
Question 1
1 / 1 pts
Which among the following will help me delete a folder, SampleDir, that isn't empty?
rm -r SampleDir
mkdir SampleDir
rmdir SampleDir
You cannot delete a non-empty folder
Wrong answer
Question 2
0 / 1 pts
Consider the following HTML (https://moodle.cs.colorado.edu/mod/resource/view.php?id=33211) code that
applies style to the text in a paragraph. In this example, what color will the text in the paragraph be?
https://canvas.colorado.edu/courses/122395/quizzes/501419?module_item_id=6818928
1/7
12/8/25, 1:13 PM
Exam 1 - Sample Quiz: CSCI 3308-F25:Software Dev Methods and Tools
none of these
black
blue
grey
Correct answer
Question 3
1 / 1 pts
Which statement below best describes the DOM?
An extension to the Java Script library which supports manipulation of objects within a web page.
DOM stands for "Distributed Object Model"
The method used by HTML to interface with Java Script
A platform and language independent interface that aids programs and scripts in dynamically accessing and updating
the content, structure, and style of a document.
Correct answer
Question 4
1 / 1 pts
What character is used to match any one character in a pattern-matching regular expression?
+
.
https://canvas.colorado.edu/courses/122395/quizzes/501419?module_item_id=6818928
2/7
12/8/25, 1:13 PM
Exam 1 - Sample Quiz: CSCI 3308-F25:Software Dev Methods and Tools
*
?
Correct answer
Question 5
6 / 6 pts
With reference to the data model shown here, which of the following queries will help fetch the count of
all the purchases made at each store by a customer ?
SELECT c.customer_id, s.store_id, COUNT(p.purchase_id)
FROM Stores s
INNER JOIN Customers c
ON s.customer_id = c.customer_id
GROUP BY c.customer_id, s.store_id;
https://canvas.colorado.edu/courses/122395/quizzes/501419?module_item_id=6818928
3/7
12/8/25, 1:13 PM
Exam 1 - Sample Quiz: CSCI 3308-F25:Software Dev Methods and Tools
SELECT c.customer_id, s.store_id, COUNT(p.purchase_id)
FROM Stores s
INNER JOIN Purchases p
ON s.store_Id = p.store_Id
INNER JOIN Customers c
ON p.customer_id = c.customer_id;
SELECT c.customer_id, s.store_id, COUNT(p.purchase_id)
FROM Stores s
INNER JOIN Purchases p
ON s.store_Id = p.store_Id
INNER JOIN Customers c
ON p.customer_id = c.customer_id
GROUP BY c.customer_id, s.store_id;
SELECT c.customer_id, s.store_id, COUNT(p.purchase_id)
FROM Stores s
INNER JOIN Purchases p
ON s.store_Id = p.store_Id
GROUP BY c.customer_id, s.store_id;
Correct answer
Question 6
1 / 1 pts
https://canvas.colorado.edu/courses/122395/quizzes/501419?module_item_id=6818928
4/7
12/8/25, 1:13 PM
Exam 1 - Sample Quiz: CSCI 3308-F25:Software Dev Methods and Tools
With this docker-file, which container will run first?
Can not be determined.
"web" container and then "db" container.
Both will run at the same time.
"db" container and then "web" container.
Correct answer
Question 7
1 / 1 pts
The output of
cp test.txt ../3308
command is __________
copies text.txt file in 3308 folder which is subdirectory of current directory
erroneous output
undefined behaviour
copies text.txt file in 3308 folder which is in parent directory of current directory
Correct answer
Question 8
1 / 1 pts
What does the command "git init" do?
Clones a repository from GitHub
Clones a repository from another developer's computer
Creates a local repository
Creates a new git user
Correct answer
Question 9
1 / 1 pts
Where in the HTML file can you include a JavaScript file?
Always within <body>
Always within <head>
You could include it within either, <head> or <body> tag
You do not need to include it in the HTML
Correct answer
https://canvas.colorado.edu/courses/122395/quizzes/501419?module_item_id=6818928
5/7
12/8/25, 1:13 PM
Exam 1 - Sample Quiz: CSCI 3308-F25:Software Dev Methods and Tools
Question 10
2 / 2 pts
Assume you changed the index.js, index.txt, and .env files. Your git repository has no .gitignore yet.
Except for the index.txt file, you want to commit all changes according to git best practices.
Match the sequence of steps with the command that you would choose.
Step 1
git add index.js
Step 2
git commit -m "Added xyz
Step 3
git push
Step 4
No need of this step
Other Incorrect Match Options:
git commit
git add .
git rm index.js
git rm index.txt
git add --all
Correct answer
Question 11
1 / 1 pts
Node.js application runs on?
Multiple Processes
Single thread
Single Process
Multiple threads
Question 12
Not yet graded / 1 pts
https://canvas.colorado.edu/courses/122395/quizzes/501419?module_item_id=6818928
6/7
12/8/25, 1:13 PM
Exam 1 - Sample Quiz: CSCI 3308-F25:Software Dev Methods and Tools
You are designing a user authentication system and need to enforce a password policy. The password
must contain any combination of uppercase letters, lowercase letters, and digits, with a length between 8
to 15 characters. Write a regular expression that would check for this requirement. Explain your answer.
You may assume that you are given the regex metacharacters reference sheet.
Your Answer:
/^[a-zA-Z0-9]{8,15}$/
https://canvas.colorado.edu/courses/122395/quizzes/501419?module_item_id=6818928
7/7