exam questions

Exam CSSLP All Questions

View all questions & answers for the CSSLP exam

Exam CSSLP topic 1 question 40 discussion

Actual exam question from ISC's CSSLP
Question #: 40
Topic #: 1
[All CSSLP Questions]

Which of the following coding practices are helpful in simplifying code? Each correct answer represents a complete solution. Choose all that apply.

  • A. Programmers should use multiple small and simple functions rather than a single complex function.
  • B. Software should avoid ambiguities and hidden assumptions, recursions, and GoTo statements.
  • C. Programmers should implement high-consequence functions in minimum required lines of code and follow proper coding standards.
  • D. Processes should have multiple entry and exit points.
Show Suggested Answer Hide Answer
Suggested Answer: inheritance, encapsulation, and polymorphism. Answer: D is incorrect. Processes should have only one entry point and the minimum number of exit points. 🗳️
The various coding practices that are helpful in simplifying the code are as follows: Programmers should implement high-consequence functions in minimum required lines of code and follow the proper coding standards. Software should implement the functions that are defined in the software specification.
Software should avoid ambiguities and hidden assumptions, recursion, and GoTo statements. Programmers should use multiple small and simple functions rather than a complex function. The processes should have only one entry point and minimum exit points. Interdependencies should be minimum so that a process module or component can be disabled when it is not needed, or replaced when it is found insecure or a better alternative is available, without disturbing the software operations. Programmers should use object-oriented techniques to keep the code simple and small. Some of the object-oriented techniques are object

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
74gjd_37
5 months, 2 weeks ago
Selected Answer: ABC
High-consequence functions are those software functions that could significantly impact the confidentiality, integrity or availability of a system and its data. These include: Authentication mechanisms: Functions handling user authentication are considered high-consequence as they control access to critical data. Encryption/decryption algorithms: Functions used for encryption and decryption play an important role in protecting sensitive information from unauthorized access. Input validation routines: Functions that validate inputs provided by users can prevent malicious input from causing security vulnerabilities. Authorization controls: Functions responsible for determining what actions individual users may carry out within the system need to be carefully designed to ensure that only authorized actions are permitted. Audit logging functions: Logging activity is essential for maintaining accountability, detecting suspicious activity and maintaining compliance with legal requirements.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago