Select all the test cases which correspond to an edge cases for the following
program:
a = round(float(input('Enter an integer value for variable a: ')))
b = round(float(input('Enter an integer value for variable b: ')))
c = a+b
if (a + b <= 10):
print('Sum = ',a+b)
elif c - 5 >= 10:
print('Sum is', c)
else:
print('Sum is between 10 and 15')
a = 7, b = 3
a = 5, b = 10
a = 20, b = -5
a = 12, b = -3
Give this one a try later!
, a = 7, b = 3
a = 5, b = 10
a 20, b = -5
Is the following statement True or False:
The "Arch" style of code development, lets you develop the code incrementally. You
can write small pieces of code and test them, and ensure that they are working before
adding more code.
True
False
Give this one a try later!
False
The "Pyramid" style of code development, lets you develop the code
incrementally. You can write small pieces of code and test them, and
ensure that they are working before adding more code.
Which of the following has a loop
a -> a -> a -> a
-> b -> b v
bb
-> b -> b ^
v--------------
^ c -> c -^
c -> c
-----------------> c
Give this one a try later!
program:
a = round(float(input('Enter an integer value for variable a: ')))
b = round(float(input('Enter an integer value for variable b: ')))
c = a+b
if (a + b <= 10):
print('Sum = ',a+b)
elif c - 5 >= 10:
print('Sum is', c)
else:
print('Sum is between 10 and 15')
a = 7, b = 3
a = 5, b = 10
a = 20, b = -5
a = 12, b = -3
Give this one a try later!
, a = 7, b = 3
a = 5, b = 10
a 20, b = -5
Is the following statement True or False:
The "Arch" style of code development, lets you develop the code incrementally. You
can write small pieces of code and test them, and ensure that they are working before
adding more code.
True
False
Give this one a try later!
False
The "Pyramid" style of code development, lets you develop the code
incrementally. You can write small pieces of code and test them, and
ensure that they are working before adding more code.
Which of the following has a loop
a -> a -> a -> a
-> b -> b v
bb
-> b -> b ^
v--------------
^ c -> c -^
c -> c
-----------------> c
Give this one a try later!