Questão 1
Questão
A function that returns an integer value greater than 0 is called a Boolean function.
Questão 2
Questão
Encapsulation is the process of wrapping a piece of code in a function
Questão 3
Questão
Repeated execution of a set of programming statements is called repetitive execution.
Questão 4
Questão
A development approach that is intended to avoid a lot of debugging by only adding and testing small amounts of code at a time is called.
Questão 5
Questão
What output will the following code produce?
def area(l,w);
temp=l*w;
return temp
l=4.0
w=3.25
x=area(l,w)
if(x):
print(x)
Questão 6
Questão
What output will the following code produce?
n=10
while n!=1:
print(n,)
if n%2==0: #n is even
n=n//2
else: #n is odd
n=n*3+1
Questão 7
Questão
What output will the following statements produce?
n=2
n+=5
print(n)
Questão 8
Questão
The statements inside of a loop are known as the _____ of the loop.
Responda
-
body
-
expression
-
counter
-
block
Questão 9
Questão
A loop where terminating condition is never achieved is called an _____.
Responda
-
infinite loop
-
universal loop
-
while loop
-
for .. ever loop
Questão 10
Questão
Functions can only return Boolean expressions.
Questão 11
Questão
With built in functions, it is generally acceptable to take a "Leap of Faith".
Questão 12
Questão
"Dead Code" is code that performs calculations but never displays the results
Questão 13
Questão
Boolean expressions control _____.
Responda
-
recursion
-
conditional execution
-
alternative executive
-
all of the above
Questão 14
Questão
The modulus operator is the same as the divide operator.
Questão 15
Questão
Chained conditionals are used when there are three or more possibilities.