ECE 190
Lecture 12
September 29, 2011
Stack
Lecture Topics
Stack data structure
Lecture materials
Textbook Ch. 10
Homework/Projects
MP2.1 is out, due next Wednesday
Announcements
Exams will be available for pickup during the labs on Friday
1
V. Kindratenk
ECE 190 - Exam 2
Monday, March 26, 2012
Name:
NetID:
Discussion Section (Friday Lab Section): (circle one)
AD1 AD2 AD3 AD4 AD5 AD6 AD7 AD8 AD9 ADA
Be sure that your exam booklet has 7 pages.
This is a closed book exam.
You are allowed two 8.5x11-inch shee
F.10 Chapter 10 Solutions
10.1 The dening characteristic of a stack is the unique specication of how it is to be accessed.
Stack is a LIFO (Last in First Out) structure. This means that the last thing that is put in the
stack will be the rst one to get ou
ECE 190 Midterm Exam 1
Spring 2011 Monday, February 14, 2011 Name: NetID:
Be sure your exam booklet has 5 pages. Do not tear the exam booklet apart. Write your name at the top of each page. This is a closed book exam. You may not use a calculator. You
ECE 190 Midterm Exam 2
Spring 2011 Tuesday, March 15, 2011
Attach label here
Workstation #: Be sure your exam booklet has 9 pages. Do not tear the exam booklet apart; you can only detach pages 8 and 9. Feel free to keep pages 8 and 9 for the programming
ECE 190 Midterm Exam 1
Spring 2011 Wednesday, February 16, 2011 Name: NetID:
Be sure your exam booklet has 5 pages. Do not tear the exam booklet apart. Write your name at the top of each page. This is a closed book exam. You may not use a calculator. Y
ECE 190 Midterm Exam 1
Spring 2011
Wednesday, February 16, 2011 In this assignment, you will need to write a program that guesses a number that the user picks. First, your program should tell the user to pick a number between 0 and 100 by printing "Come
ECE 190 Midterm Exam 1
Spring 2011 Tuesday, February 15, 2011
In this assignment, you will need to write a program to count the number of primes less than n. A prime is a number that is not a multiple of any positive number other than 1 and itself. 1 is
ECE 190 Exam 3 Wednesday, April 13th, 2011
Problem 1 (5 points): Warmup Problem 2 (20 points): Problem Solving Problem 3 (15 points): File I/O Problem 4 (10 points): Debugging Problem 5 (15 points): Function Activation Records
Be sure your exam booklet h
ECE 190 Midterm Exam 1
Spring 2011 Tuesday, February 15, 2011 Name: NetID:
(TA USE ONLY): Computer Station: _ Be sure your exam booklet has 5 pages. Do not tear the exam booklet apart. Write your name at the top of each page. This is a closed book exam.
Page: 1
Name: _
ECE 190 First Midterm Exam
Spring 2013
20th February, 2013
Name:
NetID:
_
Lab Section: AD1
AD2
AD3
AD4
AD5
AD6
AD7
_
AD8
AD9 ADA
TAs name: _
Be sure your exam booklet has 10 pages.
Write your name on top of each page.
This is a closed book
Word Count:
0/2 - Empty
3/3 - Randomized Stack
2/2 - Hello
2/2 - Hello World
2/2 - This is a test
2/2 - This is @#$&^*#$ longer *$@(#$&*:" test
2/2 - When in the course of human events it becomes necessary to test code
2/2 - Hello World
2/2 - Thi
Write your answers to the written part of the exam in this file.
Part A)
A: the value would be 0x0008
Part B)
A:
u=2
v=a-5
w=3*b
x=a+2
y=c
Part C)
A:
.ORIG x3000
AND R1, R1, #0
AND R2, R2, #0
AND R3, R3, #0
ADD R3, R3, #8
NOT R3, R3
LOOP ADD R2, R1,
ECE 190 Final Exam Day Three
Spring 2013
8th May, 2013
All your answers will be submitted electronically
This is a closed book exam.
You may not use a calculator.
You are allowed one handwritten 8.5 x 11
ECE 190 Final Exam Day Two
Spring 2013
7th May, 2013
All your answers will be submitted electronically
This is a closed book exam.
You may not use a calculator.
You are allowed one handwritten 8.5 x 11"
ECE 190 Final Exam Day One
Spring 2013
6th May, 2013
All your answers will be submitted electronically
This is a closed book exam.
You may not use a calculator.
You are allowed one handwritten 8.5 x 11" sheet of notes.
Absolutely no interaction between st
ECE 190 Second Midterm Exam Day Three
Spring 2013
3rd April, 2013
All your answers will be submitted electronically
This is a closed book exam.
You may not use a calculator.
You are allowed one handwritten 8.5 x 11" sheet of notes.
Absolutely no interacti
ECE 190 Second Midterm Exam Day Two
Spring 2013
2nd April, 2013
All your answers will be submitted electronically
This is a closed book exam.
You may not use a calculator.
You are allowed one handwritten 8.5 x 11" sheet of notes.
Absolutely no interaction
ECE 190 Second Midterm Exam Day One
Spring 2013
1st April, 2013
All your answers will be submitted electronically
This is a closed book exam.
You may not use a calculator.
You are allowed one handwritten 8.5 x 11" sheet of notes.
Absolutely no interaction
ECE 190 Exam 3 Tuesday, April 12th, 2011
Problem 1 (5 points): Warmup Problem 2 (20 points): Problem Solving Problem 3 (15 points): File I/O Problem 4 (10 points): Debugging Problem 5 (15 points): Function Activation Records
Be sure your exam booklet has
ECE 190 Spring 2011
Programming Practice for Exam 1
Programing part of Exam 1 will consist of one problem for which you will be asked to write a program in C. You can use your favorite text editor, such as vi or nano. You should name your source code file
ECE 190 - Exam 2
Tuesday, March 27, 2012
Name:
NetID:
Discussion Section (Friday Lab Section): (circle one)
AD1 AD2 AD3 AD4 AD5 AD6 AD7 AD8 AD9 ADA
Be sure that your exam booklet has 7 pages.
This is a closed book exam.
You are allowed two 8.5x11-inch she
ECE 190 Exam I Fall 2009
Wednesday, September 30th, 2009
Name:
Friday Section Time:
Be sure your exam booklet has 9 pages. Write your name at the top of each page. This is a closed book exam. You may not use a calculator. You are allowed one handwritten
ECE190 Exam 1, Spring 2009
Tuesday 17 February
Name:
Be sure that your exam booklet has 10 pages. The exam is meant to be taken apart! Write your name on top of each page. This is a closed book exam. You may not use a calculator. You are allowed one 8.5
air conditioners and pools are effectively subsidized by having peak electricity costs spread over the public at
large. Moreover, a smart grid can enable utilities to pay users to reduce demand in those critical peak hours; the
little guy can share in the