

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


In this activity, you work in teams of 2~3 students to learn new programming concepts.
Introduce yourself to your teammate. Study the roles given below. Decide who will be what role for today and write the names in the table below. If you have only two people, one should have two roles. Q1. Role Name Hobby Project Manager : reads the questions aloud, keeps track of time and makes sure everyone contributes appropriately.
(10 min) Activity 2. ASCII Start time: Q2. Please write a program to run the following code and tell us the output. printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c", 73, 32, 108, 111, 118, 101, 32, 109, 97, 99, 104, 105, 110, 101, 33, 10); Answer: (5 min) Activity 3. Operating System Start^ time: Q3. List three OS Abstractions. You can find the answer in the slides. Answer: (20 min) Activity 4. GDB Start time: Download Project 1 starter code into your Edlab machine, unzip the .zip file, and run make to compile the starter code. If you do not make any edit on the code and just run it, you will encounter the segmentation fault when running the XXX_test file. Please use gdb to find it and answer the following questions. Q4. Which line in the test.cpp causes this segmentation fault? Why does it cause this segmentation fault? Hint: A segmentation fault in C occurs when a program attempts to access a memory location that it's not allowed to, often due to dereferencing a null or invalid pointer. Answer: