Page 223 - DCAP305_PRINCIPLES_OF_SOFTWARE_ENGINEERING
P. 223

Unit 10: Coding Standards



            Self Assessment Questions                                                             Notes
               6.  The XHTML specification to ensure all ……….. documents is valid.

                 (a)  HTML                       (b)  XML
                 (c)  Java Script                (d)  None of these.
               7.  All forms of source code are considered in the …………. including programming, scripting,
                 mark-up, and query languages.
                 (a)  database                   (b)  networking

                 (c)  software project           (d)  None of these.
               8.  The primary purpose for conducting code reviews throughout the development life cycle
                 is to identify defects in the ………………..
                 (a)  design                     (b)  code
                 (c)  document                   (d)  design
               9.  The application, construct comments using a uniform style, with consistent punctuation
                 and……………..
                 (a)  structure                  (b)  software development life cycle

                 (c)  programming language       (d)  None of these.
              10.  File and folder names, like procedure names, should accurately describe what purpose
                 they serve.
                 (a)  True                       (b)  False
              11.  The comments are used to explain the intent of the code.

                 (a)  True                       (b)  False
              12.  An abbreviation should have only one meaning and likewise, each abbreviated  word
                 should have many abbreviation.
                 (a)  True                       (b)  False
              13.  A name of the project should tell “what” rather than “how.”
                 (a)  True                       (b)  False

              14.  Stored procedure execution is faster when you pass parameters by position rather than
                 by name.

                 (a)  True                       (b)  False.
              15.  Use a stored procedure with output parameters instead of single-record SELECT statements
                 when retrieving one row of data.
                 (a)  True                       (b)  False.

            10.4 Summary

               •  Coding standards provide rules and guidelines for some aspects of programming in order
                 to make code easier to read.
               •  Software errors are a reality that all programmers have to deal with.





                                             LOVELY PROFESSIONAL UNIVERSITY                                   217
   218   219   220   221   222   223   224   225   226   227   228