Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Solution to Quiz 3 - Computer Science 1 | CS 120, Quizzes of Computer Science

Material Type: Quiz; Class: Computer Science 1.; Subject: COMPUTER SCIENCE; University: Ball State University; Term: Fall 2006;

Typology: Quizzes

2009/2010

Uploaded on 03/28/2010

koofers-user-fp9
koofers-user-fp9 🇺🇸

10 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Name:_____________________________
Quiz 3
CS 120-2, Fall 2006
1. What is the value of x after the execution of the following program part?
int x = 7;
x *= 3;
21
2. Write a statement that adds 1 to x. You may not use the number 1, nor the symbol =.
x++;
3. List all possible values of a variable of type boolean.
true, false
4. There are two ways to cause a block of statements to repeat. One is with a loop; what is the other
one?
recursion
5. The following is the declaration of a variable of type Vector. What is the meaning of E?
Vector< E > v;
the type of the elements of v

Partial preview of the text

Download Solution to Quiz 3 - Computer Science 1 | CS 120 and more Quizzes Computer Science in PDF only on Docsity!

Name:_____________________________

Quiz 3

CS 120-2, Fall 2006

  1. What is the value of x after the execution of the following program part? int x = 7; x *= 3; 21
  2. Write a statement that adds 1 to x. You may not use the number 1, nor the symbol =. x++;
  3. List all possible values of a variable of type boolean. true, false
  4. There are two ways to cause a block of statements to repeat. One is with a loop; what is the other one? recursion
  5. The following is the declaration of a variable of type Vector. What is the meaning of E? Vector< E > v; the type of the elements of v