/******************************************************************/

This document is subject to change.  Please monitor regularly.

Please report any errors or omissions in this document: 
anne.dawson@gmail.com

This document is current at: Monday 8th September 2008, 8:00 PT, AHD

/******************************************************************/

CSCI120 QUIZ 1
==============

Quiz 1 is worth 5% of the final grade.

For Quiz 1 you should study all topics in Weeks 1 - 3 shown on the course schedule.

Note: Students may be tested in a quiz, exam or assessed lab
on the content of reading assignments, 
in-class assignments and homework assignments.




The format of Quiz 1 is as follows:

30 multiple choice or true/false questions - worth 1 point each.
Some multiple choice questions require you to predict the output of programs.




Example predict the output questions:


1.  What is the output of this Python program?

x = 17 / 2 % 2 * 3**3
print x
 

Answer:
0





 
2.  What is the output of this Python program?

print 7 > 10 ,
print 4 < 16 ,
print 4 == 4 ,
print 4 <= 4 ,
print 4 >= 4 ,
print 4 != 4 ,
print 4 <> 4


Answer: 
False True True True True False False




 

3.  What is the output of this Python program?


num1 = 5
if num1 >= 91:
    num2 = 3
else:
    if num1 < 6:
        num2 = 4
    else:
        num2 = 2
x = num2 * num1 + 1
print x,x%7



Answer: 
21     0






4.  Java byte code is interpreted by:

A) the java compiler
B) the IDLE editor
C) the Java Virtual Machine
D) none of the other answers

Answer: 
C







GPA
===
Your attendance, conduct and progress are monitored throughout the course.
You may inspect your status report at any time using the online Gradebook
The date of the each quiz is shown in the course schedule.  

/************************************************************/
Good Luck!
AHD
/************************************************************/
 

End of document

 

 


 






Home | Contact | About































Valid XHTML 1.0!

Valid CSS!