CISSP PRACTICE QUESTIONS – 20201122

Effective CISSP Questions

A developer using XML-based markup to compose a user interface that will be rendered into an HTML form. Which of the following best describes the programming paradigm?
A. Imperative
B. Declarative
C. Polymorphism
D. Object-oriented

Kindly be reminded that the suggested answer is for your reference only. It doesn’t matter whether you have the right or wrong answer. What really matters is your reasoning process and justifications.

My suggested answer is B. Declarative.

Using an XML-based markup to describe the user interface element that will be rendered into an HTML form is the declarative programming paradigm. If the HTML form is rendered through JavaScript statements to control the Document Object Model (DOM), it’s the imperative programming paradigm. The following diagram demonstrates the difference:

Declarative Programming

In computer science, declarative programming is a programming paradigm—a style of building the structure and elements of computer programs—that expresses the logic of a computation without describing its control flow.

Source: Wikipedia

Imperative Programming

In computer science, imperative programming is a programming paradigm that uses statements that change a program’s state.

Source: Wikipedia

Object-Oriented Programming (OOP)

Object-oriented programming (OOP) is a programming paradigm based on the concept of “objects”, which can contain data and code: data in the form of fields (often known as attributes or properties), and code, in the form of procedures (often known as methods).

Source: Wikipedia

Polymorphism

Polymorphism is one of the OOP features.

In programming languages and type theory, polymorphism is the provision of a single interface to entities of different types[1] or the use of a single symbol to represent multiple different types.

Source: Wikipedia

Reference

A BLUEPRINT FOR YOUR SUCCESS IN CISSP

My new book, The Effective CISSP: Security and Risk Management, helps CISSP aspirants build a solid conceptual security model. It is not only a tutorial for information security but also a study guide for the CISSP exam and an informative reference for security professionals.

開發人員使用基於XML的標記來構成將呈現為HTML表單的用戶界面。 以下哪一項最能描述編程範例(programming paradigm)?
A. 命令式 (Imperative)
B. 聲明式 (Declarative)
C. 多態性 (Polymorphism)
D. 物件對象 (Object-oriented)

 

Leave a Reply