Download Certified Associate in Python Programming.PCAP.CertDumps.2019-03-06.20q.vcex

Vendor: Python Institute
Exam Code: PCAP
Exam Name: Certified Associate in Python Programming
Date: Mar 06, 2019
File Size: 442 KB

How to open VCEX files?

Files with VCEX extension can be opened by ProfExam Simulator.

Demo Questions

Question 1
Assuming that the following snippet has been successfully executed, which of the equations are True? (Select two answers) 
  
  1. len(a) == len (b)
  2. b [0] +1 ==a [0]
  3. a [0] == b [0]
  4. a [0] + 1 ==b [0]
Correct answer: AC
Explanation:
  
  
Question 2
Assuming that the following snippet has been successfully executed, which of the equations are False? (Select two answers) 
  
  1. len(a)== len (b)
  2. a [0]-1 ==b [0]
  3. a [0]== b [0]
  4. b [0] - 1 ==a [0]
Correct answer: AB
Explanation:
  
  
Question 3
Which of the following statements are true? (Select two answers)
  1. Python strings are actually lists
  2. Python strings can be concatenated
  3. Python strings can be sliced like lists
  4. Python strings are mutable
Correct answer: BC
Explanation:
Reference: https://docs.python.org/2/tutorial/introduction.html
Reference: https://docs.python.org/2/tutorial/introduction.html
Question 4
Which of the following sentences are true? (Select two answers)
  1. Lists may not be stored inside tuples
  2. Tuples may be stored inside lists
  3. Tuples may not be stored inside tuples
  4. Lists may be stored inside lists
Correct answer: BD
Explanation:
Reference: https://www.afternerd.com/blog/python-lists-for-absolute-beginners/
Reference: https://www.afternerd.com/blog/python-lists-for-absolute-beginners/
Question 5
Assuming that String is six or more letters long, the following slice 
string [1:-2]
is shorter than the original string by:
  1. four chars
  2. three chars
  3. one char
  4. two chars
Correct answer: A
Question 6
What is the expected output of the following snippet? 
  
  1. 1
  2. 2
  3. 3
Correct answer: C
Explanation:
  
  
Question 7
What is the expected output of the following snippet? 
  
  1. abc
  2. The code will cause a runtime exception
  3. ABC
  4. 123 
Correct answer: B
Explanation:
  
  
Question 8
How many elements will the list2 list contain after execution of the following snippet? 
list1 = [False for i in range (1, 10) ] 
list2 = list1 [-1:1:-1]
  1. zero
  2. five
  3. seven
  4. three
Correct answer: C
Explanation:
  
  
Question 9
What would you used instead of XXX if you want to check weather a certain ‘key’ exists in a dictionary called dict? (Select two answers)) 
if XXX:
      print (“Key exists”)
  1. ‘key’ in dict
  2. dict [‘key’] != None
  3. dict.exists (‘key’)
  4. ‘key’ in dict.keys ( )
Correct answer: B
Explanation:
Reference: https://thispointer.com/python-how-to-check-if-a-key-exists-in-dictionary/
Reference: https://thispointer.com/python-how-to-check-if-a-key-exists-in-dictionary/
Question 10
You need data which can act as a simple telephone directory. You can obtain it with the following clauses (select two relevant variants; assume that no other items have been created before) 
  1. dir={‘Mom’: 5551234567, ‘Dad’: 5557654321}
  2. dir= {‘Mom’: ‘5551234567’, ‘Dad’: ‘5557654321’}
  3. dir= {Mom: 5551234567, Dad: 5557654321}
  4. dir= {Mom: ‘5551234567’, Dad: ‘5557654321’}
Correct answer: CD
HOW TO OPEN VCE FILES

Use VCE Exam Simulator to open VCE files
Avanaset

HOW TO OPEN VCEX AND EXAM FILES

Use ProfExam Simulator to open VCEX and EXAM files
ProfExam Screen

ProfExam
ProfExam at a 20% markdown

You have the opportunity to purchase ProfExam at a 20% reduced price

Get Now!