T4Tutorials .PK

NSCT – Frontend Frameworks & Libraries MCQs

1. . Frontend frameworks are used to:

(A) Manage server-side logic


(B) Only structure databases


(C) Optimize CPU usage


(D) Simplify the development of dynamic and interactive web interfaces




2. . Popular frontend frameworks include:

(A) Node.js, Express.js


(B) Django, Flask


(C) React, Angular, and Vue.js


(D) MySQL, PostgreSQL




3. . React is primarily:

(A) A backend framework


(B) A CSS framework


(C) A JavaScript library for building user interfaces using components


(D) A database management tool




4. . Angular is primarily:

(A) A database system


(B) A full-featured frontend framework for building single-page applications


(C) A styling tool


(D) A server-side framework




5. . Vue.js is known for:

(A) Only backend logic


(B) Being progressive and easy to integrate with existing projects


(C) Managing databases


(D) Optimizing CPU usage




6. . Components in frontend frameworks are:

(A) Only HTML elements


(B) Only CSS classes


(C) Reusable pieces of UI with their own structure, style, and behavior


(D) Server scripts




7. . JSX in React allows:

(A) Styling elements only


(B) Writing HTML-like syntax directly inside JavaScript


(C) Creating CSS classes


(D) Server-side scripting




8. . Data binding in Angular refers to:

(A) Synchronizing data between the model and the view


(B) Styling elements dynamically


(C) Optimizing CPU usage


(D) Accessing databases




9. . Vue.js uses which kind of data binding?

(A) No data binding


(B) Only one-way data binding


(C) Two-way data binding with the v-model directive


(D) CPU optimization




10. . State management in frontend frameworks helps to:

(A) Style elements only


(B) Manage the application’s data and UI state efficiently


(C) Structure HTML


(D) Optimize CPU only




11. . Popular state management libraries include:

(A) Django, Flask


(B) React, Angular, Vue


(C) Redux, Vuex, and MobX


(D) MySQL, PostgreSQL




12. . Routing in frontend frameworks is used to:

(A) Optimize CPU


(B) Style elements


(C) Navigate between different views without reloading the page


(D) Store database records




13. . React Router is used for:

(A) Optimizing CPU


(B) Managing state


(C) Styling elements


(D) Client-side routing in React applications




14. . Directives in Angular are used to:

(A) Optimize CPU usage


(B) Only style elements


(C) Manage databases


(D) Extend HTML with custom behavior (*ngIf, *ngFor)




15. . Vue.js directives include:

(A) v-if, v-for, v-bind, v-on


(B) ng-if, ng-for only


(C) CSS classes


(D) HTML tags




16. . Lifecycle hooks in frontend frameworks are:

(A) Functions that run at specific stages of a component’s existence


(B) CSS properties


(C) HTML attributes


(D) Database triggers




17. . Virtual DOM in React:

(A) Styles elements dynamically


(B) Is used to store database records


(C) Improves performance by updating only changed parts of the UI


(D) Optimizes CPU only




18. . Components communicate in frameworks using:

(A) CSS only


(B) Props, events, or state management libraries


(C) HTML only


(D) Server-side scripts




19. . Single Page Applications (SPAs) are:

(A) CPU optimization tools


(B) Multi-page websites


(C) Only server-side scripts


(D) Web apps that load a single HTML page and dynamically update content




20. . The ultimate goal of Frontend Frameworks & Libraries is:

(A) Only structure HTML


(B) Build maintainable, reusable, performant, and interactive user interfaces


(C) Only style web pages


(D) Optimize CPU only




Exit mobile version