Signature _ cs11f _
CSE 11 Quiz 2 Fall 2008
Name _ Student ID _
This quiz is to be taken by yourself with closed books, closed notes, no calculators. (Partial) Operator Precedence Table Operators Associativity * / % left to right + left to right < <= > >=
Signature _ Student ID _
Name_ Score:
Quiz 5 CSE 21 Spring 2010
A series of if-then-else constructs can be modeled with an m-ary decision tree where m is equal to _. A balance scale can be modeled with an m-ary decision tree where m is equal to _. In a co
Programming Assignment 1: CS11TurtleGraphics
Due: 11:59pm, Thursday, October 1
Overview
You will use simple turtle graphics to create a three-line drawing consisting of the following text, where XXX should be
replaced with the three letters your own CS11
Signature _ cs11f _
CSE 11 Quiz 1 Fall 2009
Name _ Student ID _
This quiz is to be taken by yourself with closed books, closed notes, no calculators. (Partial) Operator Precedence Table Operators Associativity ! + - (pre & post inc/dec) right to left * /
Signature _ Student ID _
Quiz 1 CSE 21 Fall 2010
Name_
Calculate the first 6 terms for the sum of the first n even natural numbers (n = 1, n = 2, n = 3, . , n = 6). Then to the right calculate the sequence of differences between these terms. (The first ev
Signature _ Student ID _
Name_ Score:
Quiz 1 CSE 21 Spring 2010
Calculate the first 6 terms for the sum of the first n odd natural numbers (n = 1, n = 2, n = 3, . , n = 6). Then to the right calculate the sequence of differences between these terms. n Seq
Signature _ cs11f _
CSE 11 Quiz 2 Fall 2009
Name _ Student ID _
This quiz is to be taken by yourself with closed books, closed notes, no calculators. (Partial) Operator Precedence Table Operators Associativity * / % left to right + left to right < <= > >=
Signature _ Student ID _
Name_ Score:
Quiz 2 CSE 21 Fall 2010
How many different strings can be formed by rearranging the letters in the word ABCABCA? _ A) C(7,3) B) P(7,3) C) 7!/(3!2!2!) D) 7! E) 73 F) (3!2!2!)/7!
26 refrigerator magnets (A-Z). No duplic
Signature _ Student ID _
Name_ Score:
Quiz 2 CSE 21 Spring 2010
Professor Sally Mander has 25 students in her Data Structures class and 17 students in her Discrete Math class. Assuming that there are no students who take both classes, how many students do
Signature _ cs11f _
CSE 11 Quiz 3 Fall 2009
Name _ Student ID _
This quiz is to be taken by yourself with closed books, closed notes, no calculators. What is the output produced by this program? (Hint: Draw Stack Frames!)
public class Mystery cfw_ public
Signature _ Student ID _
Quiz 3 CSE 21 Fall 2010
Name_ Score:
How many ways are there to rearrange all the letters in BOOKKEEPER? _ There may be more than one correct answer. List all that are correct. (+1 for correct; -1 for incorrect; no negative score)
Signature _ Student ID _
Name_ Score:
Quiz 3 CSE 21 Spring 2010
How many ways are there to rearrange all the letters in BANANA? _ A) 6! B) P(6,3) C) C(6,3) D) 63 E) 6!/(1!2!3!) F) C(6,1)*C(6,2)*C(6,3)
What kind of problem is this? _ A) (Generalized) Pigeo
Signature _ cs11f _
CSE 11 Quiz 4 Fall 2009
Name _ Student ID _
This quiz is to be taken by yourself with closed books, closed notes, no calculators. What is the output produced by the following program? (Hint: draw stack frames)
public class Mystery cfw_
Signature _ Student ID _
Name_ Score:
Quiz 4 CSE 21 Spring 2010
Which version (recursive or iterative or both) of Fib(n) will be more time and space efficient? _ A) recursive B) iterative C) both are equal
What is the main reason why? _ A) recursive versi
Signature _ cs11f _
CSE 11 Quiz 5 Fall 2008
Name _ Student ID _
This quiz is to be taken by yourself with closed books, closed notes, no calculators. Write a method named dSum() that takes an array of doubles as a parameter and returns the sum of all elem
Signature _ cs11f _
CSE 11 Quiz 5 Fall 2009
Name _ Student ID _
This quiz is to be taken by yourself with closed books, closed notes, no calculators. Given the following partial class definition for Point, fill in the blanks to complete the class definiti
Programming Assignment 2 ( 100 Points )
Due: Thursday, October 8 by 11:59pm
PA2 is a two part assignment. The first part is designing a program which prints
out the largest odd number entered and the smallest even number entered. For
instance, if the user