Assignment 1
Assignment 1
1. Make sure to give the correct information in your submission link. You will receive a response email for
every submission. You must save it for future reference for the whole semester as you will be
asked to show it.
2. Every assignment will have multiple questions. For every question, you will save your solution (i.e.
program) as a .c file. So if “Assignment 01” has 4 questions (marked as 1, 2, 3 and 4), then you will
save your solution program as 1.c, 2.c, 3.c and 4.c.
Note: Your program will be compiled to check if your solution is correct and you will
be marked accordingly. If any solution file is missing or not submitted, the marks for that
solution will be zero.
3. Submit your files in a compressed folder (rar or zip) as per “submission instructions” given in your as-
signment question paper.
Note: You must make sure to upload in .zip or .rar. Folders submitted with any other exten-
sion or wrong extension will not be evaluated and awarded zero.
4. The student must ensure that the submitted file is not corrupted and can be unzipped properly. Cor-
rupted files that cannot be opened will be given zero. Similarly bad filenames having any
other extension than “.c” will not be evaluated and given zero.
5. You will be able to upload your assignment multiple times within the deadline span, but only your last
submission will be treated as final and considered for evaluation. No plea/request to consider inter-
mediate submissions for evaluation will be entertained. So, make sure to carefully check that you
are submitting the correct assignment.
6. The submission link will be automatically deactivated after the deadline, and no request/plea for extension
will be accepted. Non-submission /wrong submission will be automatically awarded zero.
7. Your code will be checked for similarity and you will be penalized according to the following rule:
8. Compiler Information: Program must be compiled using online gdb compiler. If your
program can not be compiled using gdb compiler then marks will be reduced.
Compiler Link : https://www.onlinegdb.com/online_c_compiler
9. Marks for every assignment (other than practice assignments) will be mailed to you with remarks. You
will be allowed a deadline for rebuttal, after which no rebuttal will be entertained.
1
CS559: Computer Systems Lab
Date: [18th February,2024]
Assignment[1]
Submission deadline: [24th February, 2024 - 23:59 Hrs. IST]
Submission Instruction: Store your assignments in folder and compress it as a rar/zip file (filename should
be in this format: roll-number assign(1).rar or roll-number assign[1].zip ). For example, if your roll number is
2211CS01, store your assignment as 2211CS01 assign[1].rar or 2211CS01 assign[1].zip. Also, save each program
in the format given beside each question. Upload the same at the below link:
https://forms.gle/uPDCxhzXp3eXdpDv7
1 Problem:1
Implement a simple stack in Python and perform the following operations:
Provide the Python code for each operation and Check if the stack is empty. If not, then print the final
state of the stack.[10 points]
Expected Output:
False
[5, 10, 20, 35]
2
CS559: Computer Systems Lab
Evaluation Criteria
Date: [18th February,2024]
Assignment[1]
Submission deadline: [24th February, 2024 - 23:59 Hrs. IST]
Problem [1]:
• Improper indentation: -1 points
• Compilation error: -1 points