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
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
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 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
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
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 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 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"
/* *Do not modify this file or you will lose points* */
int get_max_distance(int x_coords[], int y_coords[], int size);
int get_equal_pairs(int x_coords[], int y_coords[], int size);
int get_distance(int x1, int y1, int x2, int y2);
#include "string-ops.h"
#include <stdio.h>
int main()
cfw_
char reversed_string[256];
/* Example test case */
char string1[] = "Hello world, this is a test string";
printf("Testing ''\n", string1);
printf("Word count: 0\n", get_word_count(string1);
#include "string-ops.h"
int get_word_count(char * string)
/*! Given a C string, count the number of words. Assumes only
spaces (' ') are used as word separators, and that there are
no spaces at the beginning or end of the string.
*/
cfw_
/* *Write your
1/1 - Part A
5/5 - Part B
2/2 - Part C: initialization
3/3 - Part C: body
6/6 - Part C: condition
3/3 - Part C: update
20/20 - Total
= Comments below this line =
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 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 Homework 1
Spring 2011 Complete all parts of the following problems from the textbook: 1.13, 2.3, 2.9, 2.10, 2.11, 2.12, 2.18, 2.20, 2.26, 2.34, 2.48, 2.49, 2.54. Be sure to check the errata page at http:/highered.mcgraw-hill.com/sites/0072467509/
ECE 190 Final Exam
Practice exam
Problem 1: MP5-related Problem 2: LC-3 Problem 3: Debugging Problem 4: Linked data structures Problem 5: Multi-dimensional arrays
Please note You are allowed to bring four handwritten 8.5 x 11" sheets of notes. Printed n
ECE 190 Final Exam Wednesday, May 11th, 2011
Problem 1 (5 points): Warmup Problem 2 (20 points): LC-3 Problem 3 (10 points): Debugging Problem 4 (10 points): Linked lists Problem 5 (15 points): Problem Solving
Be sure your exam booklet has 9 pages. This
ECE 190 Final Exam Monday, May 9th, 2011
Problem 1 (5 points): Warmup Problem 2 (20 points): LC-3 Problem 3 (10 points): Debugging Problem 4 (10 points): Linked lists Problem 5 (15 points): Problem Solving
Be sure your exam booklet has 9 pages. This is a