Compare commits

...

7 Commits

Author SHA1 Message Date
Jidong Xiao
2d2aaa903b adding global variables 2025-01-26 09:13:56 -05:00
Jidong Xiao
13a8805c07 line breaks 2025-01-26 09:13:56 -05:00
Jidong Xiao
2d1a6e3185 line breaks 2025-01-26 09:13:56 -05:00
Jidong Xiao
1e76a9b7e7 1-6 not 7 2025-01-26 09:13:56 -05:00
Jidong Xiao
a048f5a888 test info 2025-01-26 09:13:56 -05:00
Jidong Xiao
4b85b125f9 test info 2025-01-26 09:13:56 -05:00
Jidong Xiao
01f3b711c9 no test info for now 2025-01-26 09:13:56 -05:00

View File

@@ -1,21 +1,21 @@
# Test 1 Information
- Students will be randomly assigned to a test room and seating zone will be on Submitty soon.
Students will be randomly assigned to a test room and seating zone will be on Submitty soon.
<!-- If you havent filled out the “Left or Right Handed” gradeable by Tuesday night, we will assume you are
right handed. This is used for seating assignments.-->
- Test 1 will be held **Thursday, 02/01/2024 from 6-7:50pm**.
No make-ups will be given except for pre-approved absence or illness, and a written excuse from the Dean
of Students or the Student Experience office or the RPI Health Center will be required.
If you have a letter from Disability Services for Students and you have not already emailed it to
ds_instructors@cs.rpi.edu, please do so ASAP. Shianne Hulbert will be in contact with you about
- Test 1 will be held **Thursday, 01/30/2025 from 6-7:50pm**.
<!-- No make-ups will be given except for pre-approved absence or illness, and a written excuse from the Dean
of Students or the Student Experience office or the RPI Health Center will be required. -->
If you have a letter from Disability Services for Students and you have not already emailed it to
ds_instructors@cs.rpi.edu, please do so ASAP. Meredith Widman will be in contact with you about
your accommodations for the test.
- Coverage: Lectures 1-7, Labs 1-3, and Homeworks 1-2.
Practice problems from previous exams are available on the course website. The best way to prepare is to completely work through and write out your solution to each problem, before looking at the answers.
- OPTIONAL: you are allowed to bring two physical pieces of 8.5x11” paper, thats four “sides”. We will check at the start of the exam that you do not have more than two pieces of paper for your notes!
- Coverage: Lectures 1-6, Labs 1-2, and Homeworks 1-2.
- Practice problems from previous exams are available on the course website. The best way to prepare is to completely work through and write out your solution to each problem, before looking at the answers.
- OPTIONAL: you are allowed to bring one physical piece of 8.5x11” paper, thats two “sides”. We will check at the start of the exam that you do not have more than one piece of paper for your notes!
<!-- - OPTIONAL: Prepare a 2 page, black & white, 8.5x11”, portrait orientation .pdf of notes you would like to have during the exam. This may be digitally prepared or handwritten and scanned or photographed. The file may be no bigger than 2MB. You will upload this file to Submitty (“Test 1 Notes Upload”) before Wednesday night @11:59pm. We will print this and attach it to your exam. Make sure you get credit for test case 2 and that you view the details to verify your sheet looks correct. You cannot bring your own cribsheet, you must submit one electronically. IMPORTANT: Using third party websites to make a PDF may generate an invalid PDFs that prints weird. Your word processors -> save as/export to PDF, or Google Docs -> Download -> PDF should be safe. -->
- Bring to the exam room:
Your Rensselaer photo ID card.
Pencil(s) & eraser (pens are ok, but not recommended). The exam will involve handwriting code on paper (and other short answer problem solving). Neat legible handwriting is appreciated.
Pencil(s) & eraser (pens are ok, but not recommended). The exam will involve handwriting code on paper (and other short answer problem solving). Neat legible handwriting is appreciated.
Computers, cell-phones, smart watches, calculators, music players, etc. are not permitted. Please do not bring your laptop, books, backpack, etc. to the exam room leave everything in your dorm room. Unless you are coming directly from another class or sports/club meeting.
<!-- Do not bring your own scratch paper. We will provide scratch paper.-->
@@ -35,7 +35,7 @@ void func() {
}
```
- Static memory: variables allocated statically (with the keyword static), located at the data segment of the program's memory. They are are not eliminated when they go out of scope. They retain their values throughout the entire program execution, but are only accessible within the scope where they are defined. For example:
- Static memory: include global variables and variables declared with the static keyword, located at the data segment of the program's memory. They are are not eliminated when they go out of scope. They retain their values throughout the entire program execution, but are only accessible within the scope where they are defined. For example:
```cpp
static int counter;