Page 154 - Trackpad_V4.0_C8_Flipbook
P. 154

TEST SHEET  2                          (Based on chapters 6 to 10)








              A.  Choose the correct option.

                 1.  What is the purpose of using the AND operator in an if statement?
                            a. It checks if both conditions are true          b. It checks if either condition is true


                            c. It checks if neither condition is true         d. It reverses the condition

                 2.  Which of the following best describes the process of looping?

                            a. Repeating the same operation indefinitely

                            b. Skipping over certain statements in a collection


                            c. Executing a sequence of steps until a condition is met

                            d. Randomly selecting statements from a collection


                 3.                  statement executes a simple or compound statement for a fixed number of times.
                             a. if statement                                   b. for loop


                             c. while loop                                     d. do while loop

                 4.   In Python, which statements are used to transfer control out of a loop, even if all the iterations have not
                     been completed?

                             a. break and skip                                 b. stop and continue

                             c. break and continue                             d. skip and resume

                 5.  Mark the built in functions from the given list.

                            a. show()                                         b. print()

                            c. myname()                                       d. display()


                 6.  Visiting each element and processing it as required by the program is called ___________ .
                            a. functions                                      b. strings


                            c. traversing                                     d. indexing

                 7.  Which of the following technology will be used to track player movements in tennis?

                            a. NLP                                            b. Machine Learning

                            c. Computer Vision                                d. None of these






                        Premium Edition-VIII
                152
   149   150   151   152   153   154   155   156   157   158   159