Quiz
Python - Módulo 1
Create a free account to finish this quiz
Save your progress and see your final score.
Already have an account? Sign in
Questions in this quiz (21)
1The meaning of the keyword parameter is determined by:
- Aits position within the argument list
- Bits value
- Cits connection with existing variables
- Dthe argument’s name specified along with its value
2The value twenty point twelve times ten raised to the power of eight should be written as:
- A20E12.8
- B20.12E8
- C20.12*10^8
- D20.12E8.0
3The 0o prefix means that the number after it is denoted as:
- Adecimal
- Bbinary
- Coctal
- Dhexadecimal
4The ** operator:
- Aperforms exponentiation
- Bperforms duplicated multiplication
- Cdoes not exist
- Dperforms floating-point multiplication
5The result of the following division:
1 / 1- Ais equal to 1
- Bcannot be evaluated
- Ccannot be predicted
- Dis equal to 1.0
6Left‑sided binding determines that the result of the following expresión // 2 * 3 is equal to:
- A0.0
- B4.5
- C0
- D0.16666666666666666
7One of the following variables’ names is illegal – which one?
- Atrue
- BtRUE
- CTrue
- DTRUE
8The print() function can output values of:
- Aany number of arguments (excluding zero)
- Bjust one argument
- Cany number of arguments (including zero)
- Dnot more than five arguments
9What is the output of the following snippet?
x=1
y=2
z=x
x=y
y=z
print(x,y)- A1 2
- B2 1
- C1 1
- D2 2
10What is the output of the following snippet if the user enters two lines containing 2 and 4 respectively?
x=input()
y=input()
print(x+y)- A6
- B24
- C4
- D2
11What is the output of the following snippet if the user enters two lines containing 2 and 4 respectively?
x=int(input())
y=int(input())
x=x//y
y=y//x
print(y)- A2.0
- Bthe code will cause a runtime error
- C4.0
- D8.0
12What is the output of the following piece of code if the user enters two lines containing 2 and 4 respectively?
x=int(input())
y=int(input())
x=x/y
y=y/x
print(y)- Athe code will cause a runtime error
- B8.0
- C4.0
- D2.0
13What is the output of the following snippet if the user enters two lines containing 11 and 4 respectively?
x=int(input())
y=int(input())
x = x % y
x = x % y
y = y % x
print(y)- A3
- B2
- C1
- D4
14What is the output of the following snippet if the user enters two lines containing 3 and 6 respectively?
x=input()
y=int(input())
print(x*y)- A36
- B18
- C333333
- D666
15What is the output of the following snippet?
z = y = x = 1
print(x,y,z,sep=’*’)- A1 1 1
- Bx y z
- C1*1*1
- Dx*y*z
16What is the output of the following snippet?
x = 2 + 3 * 5.
print(X)- Athe snippet will cause an execution error
- B17
- C17.0
- D25.0
17What is the output of the following snippet?
x = 1 / 2 + 3 // 3 + 4 ** 2
print(x)- A17
- B17.5
- C8.5
- D8
18What is the output of the following snippet if the user enters two lines containing 2 and 4 respectively?
x=int(input())
y=int(input())
print(x+y)- A4
- B2
- C24
- D6
19The \n digraph forces the print() function to:
- Aoutput exactly two characters: \ and n
- Bduplicate the character next to the digraph
- Cstop its execution
- Dbreak the output line
20The meaning of the keyword parameter is determined by:
- Aits position within the argument list
- Bits value
- Cits connection with existing variables
- Dthe argument’s name specified along with its value
21Only one of the following statements is false – which one?
- Amultiplication precedes addition
- Bthe result of the / operator is always an integer value
- Cthe right argument of the % operator cannot be zero
- Dthe ** operator uses right sided binding
Information
- Description
- Informática (Entornos de Desarrollo) Quiz on Python - Módulo 1, created by Cristina Sierra Segura on 18/04/2019.
- Author
- Cristina Sierra Segura
- Language
- Español
- Views
- 31
- Tags
- Rating
- No ratings yet Rate this quiz