exam1Practice

exam1Practice - PIC 10A October 24, 2005 First Midterm NAME...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
PIC 10A October 24, 2005 First Midterm NAME (Print!) and UID Number: Check one: Salomone (12:00 pm): Wang: Salomone (1:00 pm): Balabanov: Problem Points Score 1 10 2 5 3 5 4 5 5 10 6 15 Total 50
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 Problem : Answer the following five true-false question. Your re- sponses should be the ENTIRE WORD TRUE OR THE EN- TIRE WORD FALSE . You will NOT receive credit for the letters T and F: (a) The statements in a while loop must always be separated by { and } . Answer: (b) You can get into an infinite for loop. Answer: (c) You can declare a variable named double . Answer: (d) v1, v2, v3 are int variables, v1=4,v2=5,v3=6 . Then, what is the value of the following boolean statement: Answer: (e) v1, v2, v3 are int variables, v1=5,v2=6,v3=4 . Then, what is the value of the following boolean statement: Answer:
Background image of page 2
3 Problem 2: You compile the program: #include <iostream> using namespace std; int main() { int m=2, n=3; cout << pow(m,n); return 0
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/22/2010 for the course PIC PIC 10A taught by Professor Shockran during the Fall '03 term at UCLA.

Page1 / 7

exam1Practice - PIC 10A October 24, 2005 First Midterm NAME...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online