200_head

|| Home || Syllabus || Calendar ||

Dr. W. Brett McKenzie, 210 Gabelli School of Business 
E-mail: wmckenzie@rwu.edu Office Tel: (401) 254-3534

Lab 6-2


Lab, Chapter 6 Section 2

Execution Control with If/Else and Boolean Functions

Name:  ______________________________       Date:     _________________________________________

Exercises from Chapter 6


1. Complete Exercise 11. Spanish Vocabulary: ______________________

Get 6-11 No Code from Blackboard - Documents "Gatto No Code"

Concept Questions (Short Answer)

2. What type of expression is used in the condition of an If statement?

 

 

 

3. Evaluate (give the value of) each of the following expressions:

            (a)     3  <  5

 

            (b)   true = = false

 

            (c)    10 >= 10

4. Which of the expressions in question 5 (above) is considered a logical expression? Give a reason for your choice.

 

 

 

5.  In Alice's drag-and-drop interface, relational operations are listed as part of the World's built-in functions.  Give a reason for making relational operations world-level, rather than class-level.

 

 

 

6. What is the purpose of a control structure in a program?

 

 

 



.



gsb_foot