Professional Documents
Culture Documents
Untitled Document
Untitled Document
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. Parallelism
2. Concurrency
3. Multiprocessing
4. Asynchronous
Answer: 2)Concurrency
1. 3.6
2. 3.5
3. 3.4
4. 3.7
Answer: 3)3.4
1. Synchronous
2. IO-bound
3. CPU-bound
4. Unstructured network code
Answer: 2)IO-bound
1. True
2. False
Answer: 2)False
1. await
2. threading
3. multiprocessing
4. asyncio
Answer: 3)multiprocessing
1. False
2. True
Answer: 1)False
1. False
2. True
Answer: 2)True
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
1. 3
2. 5
3. 2
4. 1
Answer: 4)1
1. Randomly
2. As decided by OS
3. Indeterminate
4. At points defined by code
1. Programmer
2. OS
3. App
4. Random
Answer: 2)OS
1. _thread
2. thread
3. _THREAD
4. _threading
Answer: 1)_thread
1. run
2. start()
3. init
4. spawn
Answer: 4)spawn
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
1. Event-cat
2. Event-category
3. Event-type
4. type
Answer: 2)True
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()
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()
1. Apache
2. MIT
3. GPL
4. Proprietary
Answer: 2)MIT
1. False
2. True
Answer: 1)False
1. False
2. True
Answer: 1)False
1. await()
2. async()
3. gather()
4. run()
Answer: 3)gather()
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
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()
1. True
2. False
Answer: 1)True
Answer: 3)GIL
1. spawn
2. init
3. forkserver
4. fork
Answer: 4)fork
1. shouldn’t be called.
2. two
3. one
4. three
Answer: 3)one
1. True
2. False
Answer: 2)False
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()
1. True
2. False
28.ASGI is a specification.
1. True
2. False
Answer: 1)True
1. IronPython
2. Jpython
3. Jython
4. Cpython
Answer: 4)Cpython
30.ASGI also supports WSGI apps.
1. False
2. True
Answer: 2)True
1. fork
2. spawn
3. init()
4. forkserver
Answer: 2)spawn
1. decorator
2. def
3. async/await
4. function
Answer: 3)async/await
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
1. Arrays
2. Dictionaries
3. Lists
4. Tuples
Answer: 2)Dictionaries
1. True
2. False
Answer: 2)False
If you want answers to any of the fresco play courses feel free to visit this website