Page 119 - Modular_V2.0_C++_Flikpbook
P. 119

Test Sheet-2


                                                                                    (Based on chapters 6 to 10)


                                                            Section A

                 A.   Tick ( ) the correct option.

                      1.  Which of the following functions is used to terminate the calling process?
                          a.  exit()                                   b.  abs()
                          c.  abort()                                  d.  div()

                      2.  Which of the following is a principle of OOP language?

                          a.  Data Abstraction                         b.  Function
                          c.  Procedure                                d.  None of these

                      3.  Which of the following is not a jump statement in C++?
                          a.  goto                                     b.  continue

                          c.  for                                      d.  break
                      4.  ……………………. a function means giving a body of the function.
                          a.  Defining                                 b.  Declaring
                          c.  Prototyping                              d.  Calling

                      5.  Which of the following is an example of POP language?
                          a.  FORTRAN                                  b.  ALGOL

                          c.  COBOL                                    d.  All of these

                      6.  Which of the following is not a Communication app?
                          a.  Microsoft Teams                          b.  Signal

                          c.  FaceTime                                 d.  Facebook
                      7.  Which of the following is a looping statement in C++?

                          a.  for statement                            b.  do-while
                          c.  while statement                          d.  All of these

                      8.  Which of the following is not an examples of mobile application?
                          a.  Hand-held devices                        b.  Browser
                          c.  Desktop                                  d.  None of these

                 B.   Fill in the blanks.

                      1.  The ……………….....…… function returns true if the provided character is a digit from 0 through 9.
                      2.  The body of the ……………….....…… loop executes at least once.

                      3.  Web apps are accessed through a ……………….....…… over the Internet.




                                                                                                                 117
                                                                                                    Test Sheet-2
   114   115   116   117   118   119   120   121   122   123   124