You are on page 1of 1

ExamTube

 MENU

PE1: Python Essentials 1 –


Module 2 Test Exam Answers
Full 100%
Home » PE1 Python Essentials 1 » PE1: Python Essentials 1

PE1: Python Essentials 1 – Module


2 Test Exam Answers Full 100%
2023 2024

This is Cisco NetAcad SkillsForAll PE1: Python


Essentials 1 – Module 2 Test Exam Answers Full
100% in 2023 and 2024. All answers have been
verified by experts.

1. The \n digraph forces the print()


function to:

stop its execution


duplicate the character next to the digraph
break the output line
output exactly two characters: \ and n
2. 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.0
2.0
3. What is the output of the following
snippet?

z = y = x = 1
print(x, y, z, sep='*')

1 1 1
x*y*z
1*1*1
x y z
4. What is the output of the following
snippet?

x = 1 / 2 + 3 // 3 + 4 **2
print(x)

8.5
0
17.5
17
5. What is the output of the following
snippet if the user enter two lines
containing 2 and 4 respectively?

x = int(input())
y = int(input())
print(x + y)

2
24
4
6
6. Which of the following variable
names are illegal? (Select two
answers)

true
and
TRUE
True
7. The result of the following division:

1 / 1

is equal to 1.0

is equal to 1
cannot be evaluated
cannot be predicted
8. The ** operator:

does not exist


performs duplicated multiplication
performs exponentiation
perform floating-point multiplication
9. What is the output of the following
snippet?

y = 2 + 3 * 5.
print(Y)

the snippet will cause an execution error


25.
17
17.0
10. What is the output of the following
snippet?

x = 1
y = 2
z = x
x = y
y = z
print (x, y)

1 2
1 1
2 2
2 2
11. The 80 prefix means that the
number after it is denoted as:

hexadecimal
octal
decimal
binary
12. The value twenty point twelve times
ten raised to the power of eight
should be written as:

20.12*10^8
20E12.8
20.12E8.0
20.12Eo
13. What is the output of the following
snippet if the user enter two lines
containing 2 and 4 respectively?

x = int(intput())
y = int(intput())
x = x // y
y = y //x
print(y)

the code will cause a runtime error


2.0
8.0
4.0
14. What is the output of the following
snippet if the user enter two lines
containing 11 and 4 respectively?

x = int(intput())
y = int(intput())
x = x % y
x = x % y
y = y % x
print(y)

3
2
4
1
15. 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
16. What 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)

333333
36
18
666
17. Left-sided binding determines that
the result of the following
expression:

1 // 2 * 3

is equal to :

0.0
0
4.5
0.166666666666666666
18. 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.
19. What 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)

4
2
6
24
20. 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

5
Article Rating

✉ Subscribe   Login

Be the First to Comment!

0 COMMENTS

⚡ $

Recent Posts

Which two activities are normally controlled by the


Northbridge part of the chipset? (Choose two.)
Which of the following is not a valid command for variable
declaration?
A new environment variable can be exported and assigned
a value with a single command.
Which of the following is not a valid variable name?
Shell variables are case sensitive. True or False?
Which of the following is a valid variable assignment?
3.2.3.4 Web Browsers
3.2.3.3 Productivity
3.2.3 Desktop Applications | 3.2.3.1 Email | 3.2.3.2
Creative
3.2.2.5 File Sharing

Recent Comments

Kuba on NDG Linux Essentials 2.21 | Creating Users and


Groups Module 16 | Chapter 16 Exam Answers Full 100%

Kuba on NDG Linux Essentials 2.21 | Working with Text


Module 10 | Chapter 10 Exam Answers Full 100%

ExamTube on NDG Linux Essentials 2.21 Operating


Systems Module 2 | Chapter 02 Exam Answers

Kuba on NDG Linux Essentials 2.21 Operating Systems


Module 2 | Chapter 02 Exam Answers

ExamTube on NDG Linux Essentials 2.21

Copyright © 2023 ExamTube ⌃

You might also like