Download Python Institute.PCAP.Test4Prep.2019-09-26.43q.tqb

Download Exam

File Info

Exam Certified Associate in Python Programming
Number PCAP
File Name Python Institute.PCAP.Test4Prep.2019-09-26.43q.tqb
Size 1 MB
Posted Sep 26, 2019
Download Python Institute.PCAP.Test4Prep.2019-09-26.43q.tqb

How to open VCEX & EXAM Files?

Files with VCEX & EXAM extensions can be opened by ProfExam Simulator.

Purchase

Coupon: MASTEREXAM
With discount: 20%



Exam Hub discount


Demo Questions

Question 1

What will the value of the i variable be when the following loop finishes its execution? 
  


  1. 10
  2. the variable becomes unavailable
  3. 11
  4. 9
Correct answer: B
Explanation:
Reference: https://www.programiz.com/python-programming/pass-statement
Reference: https://www.programiz.com/python-programming/pass-statement



Question 2

The following expression 
  
is:


  1. equal to 1
  2. invalid
  3. equal to 2
  4. equal to -1
Correct answer: D
Explanation:
  
  



Question 3

A compiler is a program designed to (Select two answers)


  1. rearrange the source code to make it clearer
  2. check the source code in order to see of it’s correct
  3. execute the source code
  4. translate the source code into machine code
Correct answer: BC



Question 4

How many lines does the following snippet output? 
  


  1. three
  2. one
  3. two
  4. four
Correct answer: C



Question 5

What is the expected output of the following snippet? 
  


  1. 3
  2. 1
  3. 2
  4. the code is erroneous
Correct answer: A
Explanation:
  
  



Question 6

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 7

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 8

Assuming that String is six or more letters long, the following slice 
  
is shorter than the original string by:


  1. four chars
  2. three chars
  3. one char
  4. two chars
Correct answer: A



Question 9

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 10

Can a module run like regular code?


  1. yes, and it can differentiate its behavior between the regular launch and import
  2. it depends on the Python version
  3. yes, but in cannot differentiate its behavior between the regular launch and import
  4. no, it is not possible; a module can be imported, not run
Correct answer: D
Explanation:
You write a module (a .py file) where it can be executed directly. Alternatively, it can also be imported and used in another module. By doing the main check, you can have that code only execute when you want to run the module as a program and not have it execute when someone just wants to import your module and call your functions themselves. Reference: https://developer.rhino3d.com/guides/rhinopython/python-remote-local-module/
You write a module (a .py file) where it can be executed directly. Alternatively, it can also be imported and used in another module. By doing the main check, you can have that code only execute when you want to run the module as a program and not have it execute when someone just wants to import your module and call your functions themselves. 
Reference: https://developer.rhino3d.com/guides/rhinopython/python-remote-local-module/









CONNECT US

Facebook

Twitter

PROFEXAM WITH A 20% DISCOUNT

You can buy ProfExam with a 20% discount!



HOW TO OPEN VCEX FILES

Use ProfExam Simulator to open VCEX files