Professional Documents
Culture Documents
4. What does the variable bacon contain after the following code runs?
7. Why does this expression cause an error? How can you fix it?
8. What are the two values of the Boolean data type? How do you write them?
AND Truth Table
A B O/p
000
010
100
111
OR Truth Table
A B O/p
000
011
101
111
NOT Truth table
A O/p
01
10
Condition is similar as Where clause, in which thw next flow or operation is dependent on
the mentioned condition whether it is true or false.
The condition can be used in a situation where the tickets of various blocks in a show are
issued on the basis of price paid.
10. What keys can you press if your program is stuck in an infinite loop?
Ctrl + C