Disclaimer:
Educational Use Only:
The website links provided are to be used strictly for educational and knowledge-gaining purposes only.
No Misuse:
Do not misuse the links or the information contained therein for any commercial, illegal, or unethical activities.
Respect for Websites and Businesses:
Respect the intellectual property and business interests of the websites and their owners. Do not attempt to alter, copy, or redistribute content without proper authorization.
Acknowledge Value of Knowledge:
Recognize and value the knowledge and resources shared by these websites. Use the information responsibly and ethically.
No Endorsement:
The provision of these links does not imply endorsement of the linked sites, their content, or their products and services. Users are responsible for evaluating the suitability and accuracy of the information.
User Responsibility:
By accessing these links, you agree to use the information at your own risk and to comply with all applicable laws and website terms of use.
Overall MCQs for Reference
- In data science programming, what does flow control primarily influence?
a. Data storage
b. Execution order of statements
c. Variable naming
d. Importing libraries
Answer: b. Execution order of statementscsiplearninghub+1 - Which of the following is a fundamental flow control construct?
a. Exception
b. Selection
c. Indexing
d. Debugging
Answer: b. Selectionknowledgeboat+1 - Which structure allows repeated execution of code blocks?
a. If-else
b. Looping
c. Assignment
d. Definition
Answer: b. Loopingsiteforinfotech+1 - In Python, what keyword introduces conditional flow control?
a. select
b. elif
c. run
d. case
Answer: b. elifcsiplearninghub+1 - Which of these is not a type of flow control statement in Java?
a. if-else
b. for loop
c. class
d. switch
Answer: c. classexamveda+1 - The “stop-and-wait” protocol is a flow control technique used in the:
a. Data link layer
b. Presentation layer
c. Application layer
d. Physical layer
Answer: a. Data link layertestbook+1 - What is the main purpose of flow control in networking?
a. Increase bandwidth
b. Avoid congestion
c. Encrypt data
d. Allocate IP addresses
Answer: b. Avoid congestionexamradar+1 - Which protocol uses a window for flow control and can retransmit frames if needed?
a. Stop-and-wait ARQ
b. Go-Back-N ARQ
c. HTTP
d. UDP
Answer: b. Go-Back-N ARQtestbook+1 - What does ACK stand for in flow control mechanisms?
a. Access Key
b. Acknowledgment
c. Added Kernel
d. Average K-value
Answer: b. Acknowledgmentexamradar+1 - In a sliding window protocol, how does the sender window change when an ACK is received?
a. Increases
b. Decreases
c. Doubles
d. Unchanged
Answer: a. Increasestestbook+1 - Which flow control method allows multiple frames to be transmitted before waiting for acknowledgment?
a. Stop-and-wait
b. Sliding window
c. CRC
d. DMA
Answer: b. Sliding windowexamradar+1 - What is not a flow control technique?
a. Stop-and-wait ARQ
b. CRC
c. Go-Back-N ARQ
d. Selective Repeat ARQ
Answer: b. CRCtestbook - Which of these best describes flow control in programming?
a. Regulates data values
b. Regulates data transmission rate
c. Sorts data
d. Encrypts code
Answer: b. Regulates data transmission rateexamradar+1 - In flow control, what does NAK mean?
a. Negative acknowledgment
b. Network access key
c. Node active kernel
d. Nominal association kit
Answer: a. Negative acknowledgmenttestbook+1 - In Python, which statement provides loop control?
a. break
b. continue
c. pass
d. All of the above
Answer: d. All of the abovecsiplearninghub - Which error-control protocol is often associated with flow control?
a. Parity check
b. Stop-and-wait ARQ
c. Hashing
d. Token ring
Answer: b. Stop-and-wait ARQexamradar+1 - What happens when data is sent faster than it can be received?
a. Flow control triggers
b. Encryption initiates
c. Decoding fails
d. Session resets
Answer: a. Flow control triggerstestbook+1 - Which layer in the OSI model is responsible for flow control?
a. Physical
b. Data Link
c. Network
d. Transport
Answer: b. Data Linkexamradar - Flow control primarily prevents:
a. Data loss due to buffer overflow
b. Unauthorized access
c. Data duplication
d. Slow transmission
Answer: a. Data loss due to buffer overflowtestbook+1 - Which protocol is not related to flow control?
a. TCP
b. UDP
c. Go-Back-N ARQ
d. Selective Repeat ARQ
Answer: b. UDPexamradar+1 - In asynchronous flow control, which character signals to pause data transmission?
a. XON
b. XOFF
c. ACK
d. SYN
Answer: b. XOFFsanfoundry - Which character resumes data transmission in software flow control?
a. XON
b. XOFF
c. SYN
d. NAK
Answer: a. XONsanfoundry - In the context of flow control, software handshaking uses:
a. XON/XOFF
b. ACK/NAK
c. SYN/FIN
d. RTS/CTS
Answer: a. XON/XOFFsanfoundry - In the sliding window protocol, what does the window size determine?
a. Number of frames left to send
b. Number of frames that can be sent before acknowledgment
c. Maximum bandwidth
d. Error rate
Answer: b. Number of frames that can be sent before acknowledgmenttestbook+1 - Which is a disadvantage of stop-and-wait flow control?
a. Inefficient use of bandwidth
b. Complexity
c. Expensive hardware
d. High error rate
Answer: a. Inefficient use of bandwidthexamradar - In Python, which is not a type of flow control statement?
a. if
b. for
c. try
d. import
Answer: d. importknowledgeboat+1 - The “continue” statement in loops does what?
a. Ends the loop
b. Skips to the next iteration
c. Pauses execution
d. Exits program
Answer: b. Skips to the next iterationsiteforinfotech+1 - What does the “break” statement do in a loop?
a. Ends current iteration
b. Ends the loop entirely
c. Restarts the loop
d. Doubles loop count
Answer: b. Ends the loop entirelysiteforinfotech+1 - In Java, what construct can replace multiple if-else statements?
a. switch
b. loop
c. import
d. continue
Answer: a. switchexamveda+1 - Which of these is not an iteration statement in C?
a. for
b. while
c. do-while
d. then
Answer: d. thensanfoundry - What is the primary goal of flow control in data science algorithms?
a. Optimize execution speed
b. Ensure correct order of operations
c. Encrypt model data
d. Generate random values
Answer: b. Ensure correct order of operationsknowledgeboat+1 - What determines the repetition of code block execution in flow control?
a. Boolean condition
b. String variable
c. List index
d. Data type
Answer: a. Boolean conditioncsiplearninghub+1 - Which type of flow control structure allows selection between different paths?
a. Looping
b. Conditional
c. Built-in
d. Import
Answer: b. Conditionalsiteforinfotech+1 - In Go-Back-N ARQ, if an error occurs, what is retransmitted?
a. Only the erroneous frame
b. All frames from erroneous frame onwards
c. Last ACK
d. Window size
Answer: b. All frames from erroneous frame onwardstestbook+1 - Which statement is true about flow control and error control?
a. Both are unrelated
b. Flow control handles retransmissions
c. Error control handles retransmissions
d. Data link layer does not require either
Answer: c. Error control handles retransmissionsexamradar+1 - The repeat-until loop is found in:
a. Python
b. C
c. Pascal
d. Java
Answer: c. Pascalsanfoundry - What is the effect of “pass” in Python?
a. Skips current iteration
b. Placeholder that does nothing
c. Stops execution
d. Prints a message
Answer: b. Placeholder that does nothingcsiplearninghub - In embedded systems, which method was the first flow control solution?
a. Software handshaking
b. Hardware handshaking
c. UART
d. DMA
Answer: b. Hardware handshakingsanfoundry - The major difference between flow and error control:
a. Flow control handles transmission rate, error control handles data integrity
b. Flow control handles data integrity, error control handles transmission rate
c. Both are identical
d. Neither is used in data science
Answer: a. Flow control handles transmission rate, error control handles data integritytestbook+1 - Which flow control method adapts to varying conditions by dynamically adjusting window size?
a. Stop-and-wait
b. Dynamic windowing
c. CRC
d. Token bucket
Answer: b. Dynamic windowingexamradar+1 - In selective repeat ARQ, only _______ frames are retransmitted.
a. Acknowledged
b. Non-erroneous
c. Erroneous
d. All sent
Answer: c. Erroneoustestbook+1 - Which of these is not a selection statement in programming languages?
a. if
b. switch
c. select
d. assignment
Answer: d. assignmentexamveda+1 - In flow control mechanisms, which event may cause a sender to halt transmission?
a. Buffer overflow
b. Successful processing
c. Data encryption
d. Compilation
Answer: a. Buffer overflowexamradar+1 - What is the most basic form of hardware handshaking in flow control?
a. UART signals
b. XON/XOFF
c. LIFO buffer
d. CRC bits
Answer: a. UART signalssanfoundry - In stop-and-wait flow control, after sending a frame, the sender must wait for:
a. Next data block
b. Acknowledgment
c. Timeout
d. Encryption
Answer: b. Acknowledgmenttestbook+1 - How does flow control improve overall network efficiency?
a. By avoiding buffer overflows and congestion
b. By maximizing CPU cycles
c. By reducing encryption needs
d. By enforcing specific programming languages
Answer: a. By avoiding buffer overflows and congestionexamradar+1 - Which statement, when executed, exits the current function in Python?
a. end
b. exit
c. return
d. continue
Answer: c. returncsiplearninghub - In Java, the “break” statement within switch-case serves to:
a. Continue to next case
b. Exit from the switch block
c. Ignore all cases
d. Enter another switch
Answer: b. Exit from the switch blockexamveda+1 - Conditional expression in Python can be written using:
a. if-else
b. elif
c. switch
d. select
Answer: a. if-elseknowledgeboat+1 - Data packet acknowledgment is essential for reliable flow control because:
a. It confirms receipt, enabling sender to continue
b. It encrypts the data
c. It changes buffer size
d. It activates hardware
Answer: a. It confirms receipt, enabling sender to continuetestbook+1
- https://csiplearninghub.com/flow-of-control-in-python-mcq/
- https://www.knowledgeboat.com/learn/sumita-arora-python-computer-science-class-11-cbse/solutions/YABwP/python-flow-control
- https://siteforinfotech.com/2017/08/mcq-questions-control-flow-statements-java.html
- https://www.examveda.com/java-program/practice-mcq-question-on-flow-control/
- https://testbook.com/objective-questions/mcq-on-flow-control–5eea6a0939140f30f369d910
- https://examradar.com/data-communication-networking-data-link-layer-data-link-control-flow-control-mcqs/
- https://www.sanfoundry.com/embedded-systems-questions-answers-asynchronus-flow-control/
- https://www.sanfoundry.com/c-interview-questions-answers/
- https://www.teachoo.com/19828/4170/Question-2/category/MCQ-questions-1-mark-each/
- https://www.geeksforgeeks.org/quizzes/conditionals-and-flow-control/
- https://www.scribd.com/document/564516131/Pic-22413-Mcq-Unit-3
- https://csiplearninghub.com/quiz/flow-of-control-quiz-1/
- https://www.scribd.com/document/888459520/Mcq-on-Flow-Control-and-Error-Control-5eea6a0939140f30f369d90d
- https://www.geeksforgeeks.org/quizzes/flow-error-control-pyq-quiz-gate-cs/
- https://testbook.com/objective-questions/mcq-on-flow-control-and-error-control–5eea6a0939140f30f369d90d