Skip to content
  • Home
  • CCNA Labs
    • CCNA 1 LAB Activities (v6 & v7)
    • CCNA 2 LAB Activities (v6 & v7)
    • CCNA 3 LAB Activities (v6 & v7)
    • CCNA 4 Lab Activities
  • Linux
    • Linux Unhatched
    • Linux Essentials 2.0
    • Linux Essentials
    • Introduction to Linux I
    • Introduction to Linux II
  • Programming
    • PCAP – Programming Essentials in Python
    • CLA – Programming Essentials in C
    • CPA Programming Essentials in C++
  • About
    • Contact Us
    • Privacy Policy

CCNA 7 Exam Answers 2023

Go with our CCIE, Passed 100%

  • ITE
    • ITE - IT Essentials v7.0
    • ITE - IT Essentials v6.0
      • IT Essentials Lab 2019
    • ITE v5.0 Exam
    • Virtual Activity Laptop
    • Virtual Activity Desktop
  • NE
    • MF
  • CCNA
    • CCNA1
      • CCNA1 v7.0 – ITN
      • CCNA1 v6.0
    • CCNA2
      • CCNA2 v7.0 – SRWE
      • CCNA2 v6.0
    • CCNA3
      • CCNA3 v7.0 – ENSA
      • CCNA3 v6.0
    • CCNA4
      • CCNA4 v6.0
  • Cyber-Security
    • ITC – Introduction to Cybersecurity 2.1 (Level 1)
    • CE – Cybersecurity Essentials 1.1 (Level 2)
    • CCNA CyberOps 1.1 (Level 3)
  • Security
    • CCNA Security v2
  • DevNet
  • CCNA PT Lab 2023

PCAP – Programming Essentials in Python Quizzes Module 1 Test Answers

Last Updated on May 20, 2021 by Admin

PCAP – Programming Essentials in Python Quizzes Module 1 Test Answers

  1. The \n digraph forces the print() function to:

    • output exactly two characters: \ and n
    • duplicate the character next to the digraph
    • stop its execution
    • break the output line 
  2. The meaning of the keyword parameter is determined by:

    • its position within the argument list
    • its value
    • its connection with existing variables
    • the argument’s name specified along with its value 
  3. The value twenty point twelve times ten raised to the power of eight should be written as:

    • 20E12.8
    • 20.12E8
    • 20.12*10^8
    • 20.12E8.0
  4. The 0o prefix means that the number after it is denoted as:

    • decimal
    • binary
    • octal
    • hexadecimal
  5. The ** operator:

    • performs exponentiation
    • performs duplicated multiplication
    • does not exist
    • performs floating-point multiplication
  6. The result of the following division:

    1 / 1

    • is equal to 1
    • cannot be evaluated
    • cannot be predicted
    • is equal to 1.0 
  7. Only one of the following statements is false – which one?

    • multiplication precedes addition
    • the result of the / operator is always an integer value
    • the right argument of the % operator cannot be zero
    • the ** operator uses right sided binding
  8. Left‑sided binding determines that the result of the following expression

    1 // 2 * 3

    is equal to:

    • 0.0
    • 4.5
    • 0
    • 0.16666666666666666
  9. One of the following variables’ names is illegal – which one?

    • true
    • tRUE
    • True
    • TRUE
  10. The print() function can output values of:

    • any number of arguments (excluding zero)
    • just one argument
    • any number of arguments (including zero)
    • not more than five arguments
  11. What is the output of the following snippet?

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

    • 1 2
    • 2 1
    • 1 1
    • 2 2
  12. 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)

    • 6
    • 24
    • 4
    • 2
  13. What 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)

    • 2.0
    • the code will cause a runtime error
    • 4.0
    • 8.0
  14. What 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)

    • the code will cause a runtime error
    • 8.0
    • 4.0
    • 2.0
  15. What 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)

    • 3
    • 2
    • 1
    • 4
  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)

    • 36
    • 18
    • 333333
    • 666
  17. 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
  18. What is the output of the following snippet?

    x = 2 + 3 * 5.
    print(X)

    • the snippet will cause an execution error
    • 17
    • 17.0
    • 25.0
  19. What is the output of the following snippet?

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

    • 17
    • 17.5
    • 8.5
    • 8
  20. What 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)

    • 4
    • 2
    • 24
    • 6
  • CCNA1 v7
  • CCNA2 v7
  • CCNA3 v7
System Test Exam Answers
Modules 1 – 3 Exam Answers
Modules 4 – 7 Exam Answers
Modules 8 – 10 Exam Answers
Modules 11 – 13 Exam Answers
Modules 14 – 15 Exam Answers
Modules 16 – 17 Exam Answers
Practice Final – ITN Answers
Course Feedback
ITN Practice PT Skills Assessment (PTSA)
Final Exam Answers
Modules 1 – 4 Exam Answers
Modules 5 – 6 Exam Answers
Modules 7 – 9 Exam Answers
Modules 10 – 13 Exam Answers
Modules 14 – 16 Exam Answers
ITN Practice Skills Assessment – PT Answers
SRWE Practice Skills Assessment – PT Part 1 Answers
SRWE Practice Skills Assessment – PT Part 2 Answers
SRWE Hands On Skills Exam Answers
SRWE Practice Final Exam Answers
SRWE Final Exam Answers 
Modules 1 – 2 Exam Answers
Modules 3 – 5 Exam Answers
Modules 6 – 8 Exam Answers
Modules 9 – 12 Exam Answers
Modules 13 – 14 Exam Answers
ITN Practice PT Skills Assessment (PTSA) Answers
SRWE Practice PT Skills Assessment (PTSA) – Part 1 Answers
SRWE Practice PT Skills Assessment (PTSA) – Part 2 Answers
ENSA Practice PT Skills Assessment (PTSA) Answers
ENSA Hands On Skills Exam Answers
Practice Final – ENSA Answers
ENSA Final Exam Answers
CCNA Certification Practice Exam Answers

Copyright © 2023 PressExam.