Quantcast
Channel: Teaching Software Carpentry » Round 11/3
Browsing latest articles
Browse All 20 View Live

Assessment: Pipes and Filters

The following two activities are based on the Pipes and Filters lesson. Ex 1. Beginning with the animals.text file from the lesson which contains the following lines: 2012-11-05,deer 2012-11-05,rabbit...

View Article



Assessment: Analyzing Patient Data

Q1: Given the NumPy array >>> print data [[ 0  2  4  6  8 10 12 14 16 18]  [ 1  3  5  7  9 11 13 15 17 19]  [ 2  4  6  8 10 12 14 16 18 20]  [ 3  5  7  9 11 13 15 17 19 21]  [ 4  6  8 10 12 14...

View Article

Assessment: Functions, local and global variables

Based on the SWC lesson Creating Functions Question 1 Consider the following piece of Python code: x = 2 n = 3 def poly(x): # Compute simple polynomial value for x n = 2 return x**n print poly(4), x...

View Article

Assessment – Pipes and Filters

We want to work on a DNA project and start out in the home directory: “/home/jane”. From there, we cd into the subdirectory for our project with: “cd projects/dna”. Finally, we want to copy all files...

View Article

Assessment – Git: A Better Kind of Backup

You just finished editing the file main.py (already tracked by git) and created a new file functions.py that you want git to track. What command(s) will save all these changes to the repository? >...

View Article


python while-loop

Q1: Which of the following is correct for a python “while-loop”? 1. “while-loop” is preferred over “for-loops” 2. “while-loop runs until the condition become “false” 3. It is not necessary to test the...

View Article

Assessment: Collaborating in GitHub

Multiple choice question You are a collaborator on a project stored in GitHub and you already cloned the repository (nicknamed origin) to your local directory. You have been tasked with correcting a...

View Article

Assessment: Tuple vs List

The following exercises are based on the concept map previously developed: difference between mutable (lists) and immutable (tuple). 1. Suppose we define the following tuple “a” and list “b” as...

View Article


Assessment: The Shell.

1. The pipe (|) operator in the shell… a) Separates a shell command from a list of optional arguments for that command. b) Redirects the output of the command on the left-hand side of the pipe as input...

View Article


Assessment: Using Databases, 3. Filtering

This is testing Section 3 using the example data found in Section 1. Both tests are best if you try them in your head first rather than just typing in each option and seeing if you get a result....

View Article

Assessment: Creating Things (in the shell)

Quiz based on http://software-carpentry.org/v5/novice/shell/02-create.html Question (1) Complete the following steps: * Show the current directory * Create a sub-directory * List the sub-directories...

View Article

Image may be NSFW.
Clik here to view.

Assessment: Using Databases – Combining Data

This assessment uses the Pole of Inaccessibility survey database that is being used to illustrate the Software Carpentry SQL version 5 lesson. Given the tables Person (5 rows total) and Survey (21 rows...

View Article

Assessment: Collaborating with GIT

This is testing section 3 in Collaborating with GIT. Question 1: Matt is using GIT and GitHub to collaborate with a group of scientist who are all at different institutions. He has just finished a...

View Article


Assessment: Relative paths, absolute paths, and the home directory

Pertaining to the Files and Directories section of Unix Shell.   Question 1 From a user’s home directory of /home/user, “/” represents ________ , and “..” represents __________. A)  the top or “root”...

View Article

Assessment – Writing Tests

1. Consider the following code: def is_palindrome(n):     # checks if a given integer is a palindrome.     # Returns True if it is, and False if it is not.     # e.g., 121 is a palindrome, but 122 is...

View Article


Assessment: Open Science

Question 1: Which of the following software licenses provides the least restrictions on re-use other than recognizing the original author? CC-BY (Creative commons with attribution) GPL-3 (Gnu Public...

View Article

Image Grids Colors Assessment – Jay Freeman (saurik)

The color Yellow in ipythonblocks is represented as: 1) (1, 1, 0) 2) (255, 255, 0) 3) (0, 0, 1) 4) (0, 255, 255) What is the common name for the color (0, 0, 0)? ________

View Article


conditional statement assessment

Here are a couple of assessments that I put together for conditional statements. This is related to my concept map on this topic. 1. What is printed by the following block of python code? x = 300 if x...

View Article

My demotivation

Operation Systems at my university is a cursed course. I knew that before taking it. There is no professor at the university that does research within the field and so it’s assigned like a round of...

View Article

Image may be NSFW.
Clik here to view.

From Reverse Instructional Design to Motivation

My apologies for being so slow to get this out – a combination of Canadian Thanksgiving and a bad cold. The current assignment has three parts: Post a short story (3-4 paragraphs) about something that...

View Article
Browsing latest articles
Browse All 20 View Live


Latest Images