Which of the following is a server-side scripting language?
A HTML
B PHP
C CSS
D JavaScript
PHP (Hypertext Preprocessor) is a server-side scripting language that is widely used to build dynamic web pages. It processes data on the server and sends the response to the client, often working with databases.
Which of the following is a feature of Node.js?
A Server-side scripting
B Database management
C Content management
D Frontend framework
Node.js is a server-side runtime built on JavaScript, allowing developers to use JavaScript for backend programming. It provides a non‐blocking, event‐driven architecture, making it suitable for scalable web applications.
What is the role of OAuth in web development?
A Data encryption
B User authentication
C Data compression
D Authorization
OAuth is an authorization framework that allows third‐party applications to access user data without sharing credentials. It enables secure access to resources on behalf of the user, ensuring controlled and limited permissions.
Which of the following is a feature of JWT (JSON Web Token)?
A Session management
B Secure data transmission
C Database query
D CSS styling
JWT (JSON Web Token) is used for securely transmitting information between parties. It is commonly used for authentication and authorization, allowing clients to authenticate and pass data securely between client and server.
Which server-side framework is commonly used with Python?
A Flask
B React
C Vue.js
D Angular
Flask is a lightweight Python web framework for building web applications. It is popular for creating simple, scalable web apps and APIs. It offers flexibility, allowing developers to build applications with minimal setup.
What does RESTful authentication rely on for client authorization?
A OAuth
B Sessions
C JWT
D Cookies
RESTful APIs commonly use JWT (JSON Web Token) for client authorization. The token is issued after successful authentication and allows clients to make requests securely by providing the token as part of the request header.
Which of these frameworks is used for building web applications with Python?
A Flask
B Express
C Angular
D React
Flask is a micro web framework for Python. It allows for the creation of web applications with minimal overhead and flexibility, often used for building APIs or small applications with simple routing and logic.
What is the primary purpose of server-side scripting?
A Client-side rendering
B Data processing
C CSS styling
D Image optimization
Server-side scripting is primarily used for processing data on the server. It handles logic like user authentication, form submission, database queries, and dynamic page generation before sending the output to the client’s browser.
Which of the following is used to handle authentication in a web application?
A Node.js
B JWT
C React
D CSS
JWT (JSON Web Token) is used to handle authentication in web applications. It securely transmits user credentials and authorization data across the server and client, ensuring the security of sessions and API calls.
Which of the following web technologies is used for creating dynamic web pages with Python?
A Flask
B MySQL
C HTML
D CSS
Flask is a Python web framework that allows developers to create dynamic web pages and applications. It offers tools and libraries for routing, templates, and database interaction, making it efficient for web development.
Which HTTP method is typically used to send data in a RESTful API?
A GET
B POST
C DELETE
D PUT
The POST method in HTTP is used to send data to the server, such as form submissions or creating new resources in RESTful APIs. It is used for actions like adding a new user or submitting a comment.
What is the purpose of the Flask framework?
A Server-side application development
B Static website creation
C Database management
D Client-side rendering
Flask is used for server-side development, enabling the creation of web applications and APIs. It is lightweight and flexible, making it ideal for developing small to medium-sized applications, with the option to add extensions as needed.
Which of the following methods is commonly used for authentication in web applications?
A POST
B JWT
C GET
D CSS
JWT (JSON Web Token) is a popular method for authenticating users in web applications. It stores claims (user data) in a token and sends it between client and server, allowing secure access to protected resources.
What does OAuth enable in web applications?
A User data retrieval
B External service access
C Secure payment transactions
D UI design
OAuth is a protocol that allows third‐party applications to access user data on other services without exposing user credentials. It enables secure authorization for apps to interact with services like Google or Facebook.
Which web technology is typically used for building RESTful APIs with Node.js?
A Angular
B Django
C Express
D Flask
Express is a popular web framework for Node.js used to build RESTful APIs. It simplifies routing, handling HTTP requests, and managing middleware, making it easy to build scalable and efficient web applications.