Python Essentials 1:
Python Essentials 2:
Python Essentials - Final Test:
Warning!
For searching questions, CTRL+F .if you want correct answer.. type manually.Don't Copy & paste questions in search space.
If you copy paste questions in search options means.. you can't find answer
The
\ndigraph forces theprint()function to:- stop its execution
- duplicate the character next to the digragh
- break the output line
- output exactly two characters:
\andn
What is the output of the following snippet if the user enters two lines containing 2 and 4 respectively?
x = int(input()) y = int(intpu()) x = x / y y = y / x print(y)
8.0- the code will cause a runtime error
4.02.0
What is the output of the following snippet?
z = y = x = 1 print(x, y, z, sep='*')
1 1 1x*y*z1*1*1x y z
What is the output of the following snippet?
x = 1 / 2 + 3 // 3 + 4 **2 print(x)
8.5017.517
What is the output of the following snippet if the user enter two lines containing
2and4respectively?x = int(input()) y = int(input()) print(x + y)
22446
Which of the following variable names are illegal? (Select two answers)
- true
and- TRUE
True
The result of the following division:
1 / 1- is equal to
1.0 - is equal to
1 - cannot be evaluated
- cannot be predicted
- is equal to
The
**operator:- does not exist
- performs duplicated multiplication
- performs exponentiation
- perform floating-point multiplication
What is the output of the following snippet?
y = 2 + 3 * 5. print(Y)
- the snippet will cause an execution error
25.1717.0
What is the output of the following snippet?
x = 1 y = 2 z = x x = y y = z print (x, y)
1 21 12 22 2
The 0o prefix means that the number after it is denoted as:
- hexadecimal
- octal
- decimal
- binary
The value twenty point twelve times ten raised to the power of eight should be written as:
20.12*10^820E12.820.12E8.020.12E8
What is the output of the following snippet if the user enter two lines containing
2and4respectively?x = int(intput()) y = int(intput()) x = x // y y = y //x print(y)
- the code will cause a runtime error
2.08.04.0
What is the output of the following snippet if the user enter two lines containing
11and4respectively?x = int(intput()) y = int(intput()) x = x % y x = x % y y = y % x print(y)
3241
The
print()function can output values of:- not more than five arguments
- any number of arguments (including zero)
- any number of arguments (excluding zero)
- just one argument
What is the output of the following snippet if the user enters two lines containing
3and6respectively?x = input() y = int(input()) print(x * y)
3333333618666
Left-sided binding determines that the result of the following expression:
1 // 2 * 3is equal to :
0.004.50.166666666666666666
Which of the following statement are true? (Select two answers)
- The result of the
/operator is always an integer value. - The
**operator uses right-sided binding. - Adding precedes multiplication.
- The right argument of the
%operator cannot be zero.
- The result of the
What is the output of the following snippet if the user enters two lines containing
2and4respectively?x = input() y = input() print(x + y)
42624
The meaning of the keyword parameter is determined by:
- its value
- the argument’s name specified along with is value
- its connection with exiting variables
- its position within the argument list
Python Essentials 1:
Python Essentials 2:
Python Essentials - Final Test:
