PCEP Practice Questions and answers already passed
8 vues 0 fois vendu
Cours
PCEP
Établissement
PCEP
PCEP Practice Questions and answers already passed PCEP Practice Questions
What will be the output of the following Python code?
print("Hello")
print()
print("Dear") - correct answer Hello
Dear
Select the correct output of the following Python statement:
prin("Hello, World!") - cor...
pcep practice questions and answers already passed
École, étude et sujet
PCEP
PCEP
Vendeur
S'abonner
flyhigher329
Avis reçus
Aperçu du contenu
PCEP Practice Questions
What will be the output of the following Python code?
print("Hello")
print()
print("Dear") - correct answer ✔Hello
Dear
Select the correct output of the following Python statement:
prin("Hello, World!") - correct answer ✔no output, an error is displayed on
the console
What is the correct output of the statement shown below:
print("Today", "is", "a", "great", "day.") - correct answer ✔Today is a great
day.
Which operations have the highest precedence? (select all that apply)
multiplication
division
subtraction
addition - correct answer ✔-multiplication
-division
What will be the output of the following Python code?
print("I like\nPython") - correct answer ✔I like
Python
,The 0x prefix means that a number is: - correct answer ✔hexadecimal
The Python name comes from ________. - correct answer ✔Monty Python's
Flying Circus
Select the correct output of the Python code shown below:
print("Python is\\ngreat.")
print("Python is\\great.") - correct answer ✔Python is\ngreat.
Python is\great.
Select the correct output for the code snipped shown below.
print("This", "code", "is", "being", end= " ")
print("interpreted.") - correct answer ✔This code is being interpreted.
Select the correct output for the code snipped shown below.
print("This", "code", "is", "being", "interpreted.", sep= "#") - correct answer
✔This#code#is#being#interpreted.
Select the correct statements regarding the following code snippet:
print(4//3*2)
A. The // and * operators use left-side binding
B. The output of this statement is 2.
C. The output of this statement is 0.
D. The // and * operators use right-side binding - correct answer ✔A. The //
and * operators use left-side binding
,B. The output of this statement is 2.
A backslash (\) at the end of a line of Python code tells Python to continue the
line of code on the next line. (T/F) - correct answer ✔True
Select the correct output of the Python code shown below:
print("Python is great")
print("'Python is great'")
print("""Python is great""") - correct answer ✔Python is great
'Python is great'
Python is great
Select the correct statements regarding the following code snippet:
print(4//3**2)
A. The output of this statement is 0.
B. The ** operator uses right-side binding
C. The output of this statement is 2.
D. The ** operator uses left-side binding - correct answer ✔A. The output of
this statement is 0.
B. The ** operator uses right-side binding
The Python print function allows which type of arguments?
A. All Python data types
B. Numeric arguments only
C. Integer arguments only
, D. Strings only - correct answer ✔A. All Python data types
A tool which executes Python programs one statement at a time as each
statement is read is called a/an ________.
A. compiler
B. debugger
C. translator
D. interpreter - correct answer ✔D. interpreter
Select the correct output from the following Python statement:
print(round(7.689, 2))
A. 7.68
B. 7.69
C. 7.7
D. 8 - correct answer ✔B. 7.69
What does the backslash ( \ ) mean when used in Python strings? Select all
correct statements.
A. The backslash does not have any impact on the code output
B. The backslash tells the console to start a new output line
C. The backslash is called the escape character
D. The backslash is a hint to Python that the next character has a different
meaning - correct answer ✔C. The backslash is called the escape character
Les avantages d'acheter des résumés chez Stuvia:
Qualité garantie par les avis des clients
Les clients de Stuvia ont évalués plus de 700 000 résumés. C'est comme ça que vous savez que vous achetez les meilleurs documents.
L’achat facile et rapide
Vous pouvez payer rapidement avec iDeal, carte de crédit ou Stuvia-crédit pour les résumés. Il n'y a pas d'adhésion nécessaire.
Focus sur l’essentiel
Vos camarades écrivent eux-mêmes les notes d’étude, c’est pourquoi les documents sont toujours fiables et à jour. Cela garantit que vous arrivez rapidement au coeur du matériel.
Foire aux questions
Qu'est-ce que j'obtiens en achetant ce document ?
Vous obtenez un PDF, disponible immédiatement après votre achat. Le document acheté est accessible à tout moment, n'importe où et indéfiniment via votre profil.
Garantie de remboursement : comment ça marche ?
Notre garantie de satisfaction garantit que vous trouverez toujours un document d'étude qui vous convient. Vous remplissez un formulaire et notre équipe du service client s'occupe du reste.
Auprès de qui est-ce que j'achète ce résumé ?
Stuvia est une place de marché. Alors, vous n'achetez donc pas ce document chez nous, mais auprès du vendeur flyhigher329. Stuvia facilite les paiements au vendeur.
Est-ce que j'aurai un abonnement?
Non, vous n'achetez ce résumé que pour €13,34. Vous n'êtes lié à rien après votre achat.