SlideShare a Scribd company logo
1 of 13
Download to read offline
Course Path: Data Science/DATA SCIENTIST'S TOOLBOX/Python Asynchronous
Programming
All Question of the Quiz Present Below for Ease Use Ctrl + F to find the Question.
Suggestion: If you didn't find the question, Search by options to get a more accurate
result.
Intermediate Quiz
1.Multiple threads running on the same CPU core is ______.
1. Parallelism
2. Concurrency
3. Multiprocessing
4. Asynchronous
Answer: 2)Concurrency
2.asyncio was introduced in _______ version of Python.
1. 3.6
2. 3.5
3. 3.4
4. 3.7
Answer: 3)3.4
3.asyncio is generally perfect for ___ apps.
1. Synchronous
2. IO-bound
3. CPU-bound
4. Unstructured network code
Answer: 2)IO-bound
4.asyncio does not scale well.
1. True
2. False
Answer: 2)False
5.Which module can be used to implement parallelism in Python3?
1. await
2. threading
3. multiprocessing
4. asyncio
Answer: 3)multiprocessing
6.Asynchronous programs are always faster.
1. False
2. True
Answer: 1)False
7.In purely concurrent programs, only one CPU core is used.
1. False
2. True
Answer: 2)True
8.Which module can be used to implement asynchronous communication in Python3?
1. await
2. threading
3. multiprocessing
4. asyncio
Answer: 4)asyncio
9.In apps using asyncio, who decides when a context switch can be done?
1. Code
2. Indeterminate
3. Random
4. OS
Answer: 1)Code
10.asyncio apps must have at least ________ threads of execution.
1. 3
2. 5
3. 2
4. 1
Answer: 4)1
11.In asyncio apps, when is context switching done?
1. Randomly
2. As decided by OS
3. Indeterminate
4. At points defined by code
Answer: 4)At points defined by code
12.In apps using threading, who decides when to do a context switch?
1. Programmer
2. OS
3. App
4. Random
Answer: 2)OS
13.Name the low-level module on which threading is based.
1. _thread
2. thread
3. _THREAD
4. _threading
Answer: 1)_thread
asyncio: Final Assessment
1.Name a way in which multiprocessing process can be started.
1. run
2. start()
3. init
4. spawn
Answer: 4)spawn
2.A callable object in Python must have _______ function.
1. invoke()
2. invokable()
3. callable()
4. call()
Answer: 4)call()
3.uvloop can be used as a drop-in replacement for the default event loop in asyncio.
1. False
2. True
Answer: 2)True
4.The key identifying the type of an asyncio event is ______________.
1. Event-cat
2. Event-category
3. Event-type
4. type
Answer: 2)True
5.The event loop is the heart of the asyncio app.
1. False
2. True
Answer: 2)True
6.Which among the following is not a way to schedule a coroutine for execution?
1. asyncio.run()
2. schedule()
3. create_task()
4. await
Answer: 2)schedule()
7.uvloop is a part of the standard library.
1. True
2. False
Answer: 2)False
8.For a class inheriting Thread, which method can be overridden other than the constructor?
1. run()
2. start()
3. init()
4. action()
Answer: 1)run()
9.uvloop is distributed under _______ license.
1. Apache
2. MIT
3. GPL
4. Proprietary
Answer: 2)MIT
10.Forkserver process in multiprocessing is multi-threaded.
1. False
2. True
Answer: 1)False
11.Just calling a coroutine will cause it to be executed.
1. False
2. True
Answer: 1)False
12.Which function is used to run awaitables concurrently in asyncio?
1. await()
2. async()
3. gather()
4. run()
Answer: 3)gather()
13.What is the full form of GIL?
1. Global Interactive Length
2. Global Interpreter Lock
3. Global Interactive Lock
4. Global Interpreter Low
Answer: 2)Global Interpreter Lock
14.All resources of the parent process is inherited in the fork method of starting a
multiprocessing process.
1. True
2. False
Answer: 1)True
15.fork method to start a multiprocessing process works only in UNIX-based systems. True or
false?
1. False
2. True
Answer: 1)False
16.Which module can be used to implement concurrency in Python 3?
1. asyncio
2. multiprocessing
3. threading
4. await
Answer: 3)threading
17.Which method is executed when the start() method of a thread object is called?
1. __run__()
2. run()
3. start()
4. init()
Answer: 2)run()
18.An asyncio future represents an eventual result.
1. True
2. False
Answer: 1)True
19.ASGI stands for ______________________.
1. Asynchronous Server Gate Interface
2. Asynchronous Serving Gate Interface
3. Asynchronously Serving Gateway Interface
4. Asynchronous Server Gateway Interface
Answer: 4)Asynchronous Server Gateway Interface
20.What is the biggest limitation of Cpython?
1. Asynchronous Server Gate Interface
2. Threads
3. GIL
4. Subprocesses
Answer: 3)GIL
21.Name the default method to start a multiprocessing process in Linux.
1. spawn
2. init
3. forkserver
4. fork
Answer: 4)fork
22.Ideally, how many times should asyncio.run() be called?
1. shouldn’t be called.
2. two
3. one
4. three
Answer: 3)one
23.set_start_method() can be called more than once in the same program.
1. True
2. False
Answer: 2)False
24.WSGI also supports asynchronous apps.
1. True
2. False
Answer: 2)False
25.Name the method of starting a multiprocessing process which is not available in UNIX-based
systems.
1. Forkserver
2. Spawn
3. All the options
4. Fork
Answer: 2)Spawn
26.Which is the method used to change the default way to create child processes in
multiprocessing?
1. start_method()
2. set_method()
3. reset_start_method()
4. set_start_method()
Answer: 4)set_start_method()
27.uvloop will also work on Python 2.0
1. True
2. False
28.ASGI is a specification.
1. True
2. False
Answer: 1)True
29.Name the reference implementation of Python.
1. IronPython
2. Jpython
3. Jython
4. Cpython
Answer: 4)Cpython
30.ASGI also supports WSGI apps.
1. False
2. True
Answer: 2)True
31.Name the default method to start a multiprocessing process in Windows.
1. fork
2. spawn
3. init()
4. forkserver
Answer: 2)spawn
32.asyncio coroutines are declared using _______.
1. decorator
2. def
3. async/await
4. function
Answer: 3)async/await
33.In ________ method, a server is created to start a multiprocessing process.
1. Fork
2. Spawnserver
3. Spawn
4. Forkserver
Answer: 4)Forkserver
34.Uvicorn is an implementation of ASGI.
1. False
2. True
Answer: 2)True
35.Events are being sent as _________.
1. Arrays
2. Dictionaries
3. Lists
4. Tuples
Answer: 2)Dictionaries
36.WSGI apps can also run ASGI apps.
1. True
2. False
Answer: 2)False
If you want answers to any of the fresco play courses feel free to visit this website
Fresco Play Python3 Hands-On Solutions T - factor
Milestone challenge Frescoplay Web Development User Management using SpringBoot
Milestone challenge Frescoplay Web Development User Management using SpringBoot

More Related Content

Similar to Python_Asynchronous_Programming_FP_MCQs_Answerspdf

25 java tough interview questions
25 java tough interview questions25 java tough interview questions
25 java tough interview questionsArun Banotra
 
Class notes(week 9) on multithreading
Class notes(week 9) on multithreadingClass notes(week 9) on multithreading
Class notes(week 9) on multithreadingKuntal Bhowmick
 
Chapter 02
Chapter 02Chapter 02
Chapter 02 Google
 
ScalaUA - distage: Staged Dependency Injection
ScalaUA - distage: Staged Dependency InjectionScalaUA - distage: Staged Dependency Injection
ScalaUA - distage: Staged Dependency Injection7mind
 
Perf test Eng interview preparation
Perf test Eng interview preparationPerf test Eng interview preparation
Perf test Eng interview preparationpratik mohite
 
Debugging Complex Systems - Erlang Factory SF 2015
Debugging Complex Systems - Erlang Factory SF 2015Debugging Complex Systems - Erlang Factory SF 2015
Debugging Complex Systems - Erlang Factory SF 2015lpgauth
 
Core java interview questions1
Core java interview questions1Core java interview questions1
Core java interview questions1Lahari Reddy
 
Slot02 concurrency1
Slot02 concurrency1Slot02 concurrency1
Slot02 concurrency1Viên Mai
 
Multithreading.pptx
Multithreading.pptxMultithreading.pptx
Multithreading.pptxssuserfcae42
 
Multi-threaded Programming in JAVA
Multi-threaded Programming in JAVAMulti-threaded Programming in JAVA
Multi-threaded Programming in JAVAVikram Kalyani
 
OS Module-2.pptx
OS Module-2.pptxOS Module-2.pptx
OS Module-2.pptxbleh23
 

Similar to Python_Asynchronous_Programming_FP_MCQs_Answerspdf (20)

J3d hibernate
J3d hibernateJ3d hibernate
J3d hibernate
 
25 java tough interview questions
25 java tough interview questions25 java tough interview questions
25 java tough interview questions
 
Os Question Bank
Os Question BankOs Question Bank
Os Question Bank
 
Class notes(week 9) on multithreading
Class notes(week 9) on multithreadingClass notes(week 9) on multithreading
Class notes(week 9) on multithreading
 
Chapter 02
Chapter 02Chapter 02
Chapter 02
 
Chapter 02
Chapter 02Chapter 02
Chapter 02
 
Scaling django
Scaling djangoScaling django
Scaling django
 
Quiz 4 soution
Quiz 4 soutionQuiz 4 soution
Quiz 4 soution
 
22 multi threading iv
22 multi threading iv22 multi threading iv
22 multi threading iv
 
ScalaUA - distage: Staged Dependency Injection
ScalaUA - distage: Staged Dependency InjectionScalaUA - distage: Staged Dependency Injection
ScalaUA - distage: Staged Dependency Injection
 
Section b a
Section b  aSection b  a
Section b a
 
Perf test Eng interview preparation
Perf test Eng interview preparationPerf test Eng interview preparation
Perf test Eng interview preparation
 
concurrency
concurrencyconcurrency
concurrency
 
Debugging Complex Systems - Erlang Factory SF 2015
Debugging Complex Systems - Erlang Factory SF 2015Debugging Complex Systems - Erlang Factory SF 2015
Debugging Complex Systems - Erlang Factory SF 2015
 
Java thread life cycle
Java thread life cycleJava thread life cycle
Java thread life cycle
 
Core java interview questions1
Core java interview questions1Core java interview questions1
Core java interview questions1
 
Slot02 concurrency1
Slot02 concurrency1Slot02 concurrency1
Slot02 concurrency1
 
Multithreading.pptx
Multithreading.pptxMultithreading.pptx
Multithreading.pptx
 
Multi-threaded Programming in JAVA
Multi-threaded Programming in JAVAMulti-threaded Programming in JAVA
Multi-threaded Programming in JAVA
 
OS Module-2.pptx
OS Module-2.pptxOS Module-2.pptx
OS Module-2.pptx
 

Recently uploaded

Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 

Recently uploaded (20)

Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 

Python_Asynchronous_Programming_FP_MCQs_Answerspdf

  • 1. Course Path: Data Science/DATA SCIENTIST'S TOOLBOX/Python Asynchronous Programming All Question of the Quiz Present Below for Ease Use Ctrl + F to find the Question. Suggestion: If you didn't find the question, Search by options to get a more accurate result. Intermediate Quiz 1.Multiple threads running on the same CPU core is ______. 1. Parallelism 2. Concurrency 3. Multiprocessing 4. Asynchronous Answer: 2)Concurrency 2.asyncio was introduced in _______ version of Python. 1. 3.6 2. 3.5 3. 3.4 4. 3.7 Answer: 3)3.4 3.asyncio is generally perfect for ___ apps. 1. Synchronous 2. IO-bound 3. CPU-bound 4. Unstructured network code
  • 2. Answer: 2)IO-bound 4.asyncio does not scale well. 1. True 2. False Answer: 2)False 5.Which module can be used to implement parallelism in Python3? 1. await 2. threading 3. multiprocessing 4. asyncio Answer: 3)multiprocessing 6.Asynchronous programs are always faster. 1. False 2. True Answer: 1)False 7.In purely concurrent programs, only one CPU core is used. 1. False 2. True
  • 3. Answer: 2)True 8.Which module can be used to implement asynchronous communication in Python3? 1. await 2. threading 3. multiprocessing 4. asyncio Answer: 4)asyncio 9.In apps using asyncio, who decides when a context switch can be done? 1. Code 2. Indeterminate 3. Random 4. OS Answer: 1)Code 10.asyncio apps must have at least ________ threads of execution. 1. 3 2. 5 3. 2 4. 1 Answer: 4)1 11.In asyncio apps, when is context switching done? 1. Randomly 2. As decided by OS 3. Indeterminate
  • 4. 4. At points defined by code Answer: 4)At points defined by code 12.In apps using threading, who decides when to do a context switch? 1. Programmer 2. OS 3. App 4. Random Answer: 2)OS 13.Name the low-level module on which threading is based. 1. _thread 2. thread 3. _THREAD 4. _threading Answer: 1)_thread asyncio: Final Assessment 1.Name a way in which multiprocessing process can be started. 1. run 2. start() 3. init 4. spawn
  • 5. Answer: 4)spawn 2.A callable object in Python must have _______ function. 1. invoke() 2. invokable() 3. callable() 4. call() Answer: 4)call() 3.uvloop can be used as a drop-in replacement for the default event loop in asyncio. 1. False 2. True Answer: 2)True 4.The key identifying the type of an asyncio event is ______________. 1. Event-cat 2. Event-category 3. Event-type 4. type Answer: 2)True 5.The event loop is the heart of the asyncio app. 1. False 2. True
  • 6. Answer: 2)True 6.Which among the following is not a way to schedule a coroutine for execution? 1. asyncio.run() 2. schedule() 3. create_task() 4. await Answer: 2)schedule() 7.uvloop is a part of the standard library. 1. True 2. False Answer: 2)False 8.For a class inheriting Thread, which method can be overridden other than the constructor? 1. run() 2. start() 3. init() 4. action() Answer: 1)run() 9.uvloop is distributed under _______ license. 1. Apache 2. MIT 3. GPL 4. Proprietary
  • 7. Answer: 2)MIT 10.Forkserver process in multiprocessing is multi-threaded. 1. False 2. True Answer: 1)False 11.Just calling a coroutine will cause it to be executed. 1. False 2. True Answer: 1)False 12.Which function is used to run awaitables concurrently in asyncio? 1. await() 2. async() 3. gather() 4. run() Answer: 3)gather() 13.What is the full form of GIL? 1. Global Interactive Length 2. Global Interpreter Lock 3. Global Interactive Lock 4. Global Interpreter Low
  • 8. Answer: 2)Global Interpreter Lock 14.All resources of the parent process is inherited in the fork method of starting a multiprocessing process. 1. True 2. False Answer: 1)True 15.fork method to start a multiprocessing process works only in UNIX-based systems. True or false? 1. False 2. True Answer: 1)False 16.Which module can be used to implement concurrency in Python 3? 1. asyncio 2. multiprocessing 3. threading 4. await Answer: 3)threading 17.Which method is executed when the start() method of a thread object is called? 1. __run__() 2. run() 3. start() 4. init()
  • 9. Answer: 2)run() 18.An asyncio future represents an eventual result. 1. True 2. False Answer: 1)True 19.ASGI stands for ______________________. 1. Asynchronous Server Gate Interface 2. Asynchronous Serving Gate Interface 3. Asynchronously Serving Gateway Interface 4. Asynchronous Server Gateway Interface Answer: 4)Asynchronous Server Gateway Interface 20.What is the biggest limitation of Cpython? 1. Asynchronous Server Gate Interface 2. Threads 3. GIL 4. Subprocesses Answer: 3)GIL 21.Name the default method to start a multiprocessing process in Linux. 1. spawn 2. init 3. forkserver 4. fork
  • 10. Answer: 4)fork 22.Ideally, how many times should asyncio.run() be called? 1. shouldn’t be called. 2. two 3. one 4. three Answer: 3)one 23.set_start_method() can be called more than once in the same program. 1. True 2. False Answer: 2)False 24.WSGI also supports asynchronous apps. 1. True 2. False Answer: 2)False 25.Name the method of starting a multiprocessing process which is not available in UNIX-based systems. 1. Forkserver 2. Spawn 3. All the options 4. Fork
  • 11. Answer: 2)Spawn 26.Which is the method used to change the default way to create child processes in multiprocessing? 1. start_method() 2. set_method() 3. reset_start_method() 4. set_start_method() Answer: 4)set_start_method() 27.uvloop will also work on Python 2.0 1. True 2. False 28.ASGI is a specification. 1. True 2. False Answer: 1)True 29.Name the reference implementation of Python. 1. IronPython 2. Jpython 3. Jython 4. Cpython Answer: 4)Cpython
  • 12. 30.ASGI also supports WSGI apps. 1. False 2. True Answer: 2)True 31.Name the default method to start a multiprocessing process in Windows. 1. fork 2. spawn 3. init() 4. forkserver Answer: 2)spawn 32.asyncio coroutines are declared using _______. 1. decorator 2. def 3. async/await 4. function Answer: 3)async/await 33.In ________ method, a server is created to start a multiprocessing process. 1. Fork 2. Spawnserver 3. Spawn 4. Forkserver Answer: 4)Forkserver
  • 13. 34.Uvicorn is an implementation of ASGI. 1. False 2. True Answer: 2)True 35.Events are being sent as _________. 1. Arrays 2. Dictionaries 3. Lists 4. Tuples Answer: 2)Dictionaries 36.WSGI apps can also run ASGI apps. 1. True 2. False Answer: 2)False If you want answers to any of the fresco play courses feel free to visit this website Fresco Play Python3 Hands-On Solutions T - factor Milestone challenge Frescoplay Web Development User Management using SpringBoot Milestone challenge Frescoplay Web Development User Management using SpringBoot