1.What is the primary markup language used for structuring content on the web?
a. HTML
b. CSS
c. JavaScript
d. PHP
2.What is the purpose of CSS in web development?
a. To define the structure and layout of web pages
b. To add interactivity and dynamic behavior to web pages
c. To control the visual appearance of web pages
d. To handle server-side processing and database interactions
3.Which programming language is primarily used for client-side scripting in web development?
a. HTML
b. CSS
c. JavaScript
d. PHP
4.Which protocol is used for transferring data over the web?
a. HTTP
b. FTP
c. TCP/IP
d. SMTP
5.What is the purpose of a web server in web development?
a. To store and manage website files
b. To handle client-side scripting
c. To control the visual appearance of web pages
d. To ensure secure data transmission over the web
6.Which of the following is a popular open-source database management system used in web
development?
a. MySQL
b. Oracle
c. SQL Server
d. MongoDB
7.what is the purpose of a cookie in web development?
a. To store and retrieve user preferences and session information
b. To control the visual appearance of web pages
c. To handle client-side scripting
d. To ensure secure data transmission over the web
8.Which programming language is used for server-side scripting in web development?
a. HTML
b. CSS
c. JavaScript
d. PHP
9.What is the purpose of a framework in web development?
a. To ensure secure data transmission over the web
b. To control the visual appearance of web pages
c. To provide a foundation and structure for developing web applications
d. To handle client-side scripting
10.Which programming language is often used for building scalable and high-performance web
applications?
a. HTML
b. CSS
c. JavaScript
d. Node.js
11.What is the purpose of AJAX in web development?
a. To control the visual appearance of web pages
b. To handle client-side scripting
c. To ensure secure data transmission over the web
d. To enable asynchronous communication between the client and server
12.Which format is commonly used for data interchange between a web server and a web
application?
a. HTML
b. CSS
c. JSON
d. XML
13.What is the purpose of a content management system (CMS) in web development?
a. To store and manage website files
b. To control the visual appearance of web pages
c. To handle client-side scripting
d. To provide a user-friendly interface for managing website content
14.Which technique is used to improve the performance of web applications by caching
frequently accessed data or resources?
a. Compression
b. Minification
c. Caching
d. Encryption
15.Which protocol is used for secure communication over the web?
a. HTTP
b. FTP
c. TCP/IP
d. HTTPS
16.What is the purpose of a RESTful API in web development?
a. To control the visual appearance of web pages
b. To handle client-side scripting
c. To ensure secure data transmission over the web
d. To provide a standardized interface for accessing and manipulating web resources
17.What is the purpose of responsive web design?
a. To control the visual appearance of web pages
b. To handle client-side scripting
c. To ensure secure data transmission over the web
d. To create websites that adapt and display correctly on different devices and screen sizes
18.What is the purpose of version control systems (VCS) in web development?
a. To control the visual appearance of web pages
b. To handle client-side scripting
c. To ensure secure data transmission over the web
d. To track changes to source code and collaborate on web development projects
19.Which web development concept refers to the practice of optimizing a website to rank higher
in search engine results?
a. Accessibility
b. Usability
c. SEO (Search Engine Optimization)
d. Performance optimization
20.Which technique is used to protect web applications against common security vulnerabilities,
such as cross-site scripting (XSS) and SQL injection?
a. Encryption
b. Authentication
c. Authorization
d. Web application security testing
21Which server-side scripting language is commonly used for web development?
a. HTML
b. CSS
c. JavaScript
d. PHP
22.Which server-side scripting language is often used for building scalable and highperformance web applications?
a. HTML
b. CSS
c. JavaScript
d. Node.js
23.What is the purpose of server-side scripting languages in web development?
a. To control the visual appearance of web pages
b. To handle client-side interactivity
c. To generate dynamic content and interact with databases
d. To ensure secure data transmission over the web
24.Which of the following is a server-side scripting language for Microsoft’s ASP.NET
framework?
a. Python
b. Ruby
c. C#
d. Java
25.Which client-side scripting language is supported by all modern web browsers?
a. HTML
b. CSS
c. JavaScript
d. PHP
26.Which client-side scripting language is supported by all modern web browsers?
a. HTML
b. CSS
c. JavaScript
d. PHP
27.What is the purpose of client-side scripting languages in web development?
a. To control the visual appearance of web pages
b. To handle server-side processing and database interactions
c. To generate dynamic content and interact with databases
d. To add interactivity and dynamic behavior to web pages
28.Which client-side scripting language is primarily used for manipulating the Document Object
Model (DOM) of a web page?
a. HTML
b. CSS
c. JavaScript
d. PHP
29.Which client-side scripting language is often used for validating form inputs on web pages?
a. HTML
b. CSS
c. JavaScript
d. PHP
30.Which client-side scripting technique allows for loading new content into a web page without
a full page reload?
a. AJAX
b. JSON
c. XML
d. Bootstrap
showhide type=”link30″ more_text=”Show Question” less_text=”Hide Question”] a. AJAX [/showhide]
31.Which client-side framework/library is commonly used for building responsive and
interactive user interfaces?
a. jQuery
b. React
c. Angular
d. Vue.js
32.Which technique is used to handle communication between a web browser and a server
without interrupting the user’s interaction with the web page?
a. AJAX
b. JSON
c. Websockets
d. RESTful API
33.Which client-side technique is used to store data locally in a user’s browser?
a. Cookies
b. Local storage
c. Session storage
d. IndexedDB
34.Which technique is used to optimize web page loading speed by combining and minifying
multiple CSS or JavaScript files?
a. Compression
b. Caching
c. Minification
d. Encryption
35.Which client-side technique is used to handle and process user interactions, such as mouse
clicks or keyboard inputs?
a. Event handling
b. Form validation
c. Responsive design
d. Browser compatibility
36.Which client-side technique is used to ensure that a web page displays correctly across
different devices and screen sizes?
a. Event handling
b. Form validation
c. Responsive design
d. Browser compatibility
37.Which client-side technique is used to send and receive data between a web browser and a
server in JSON format?
a. AJAX
b. Websockets
c. RESTful API
d. Bootstrap
38.Which client-side technique is used to enhance the user interface by providing interactive
tooltips, modals, and other components?
a. jQuery
b. React
c. Angular
d. Vue.js
39.Which client-side technique is used to create visually appealing and responsive layouts for
web pages?
a. HTML
b. CSS
c. JavaScript
d. PHP
40.Which client-side technique is used to optimize web page loading speed by preloading
resources in advance?
a. Compression
b. Minification
c. Caching
d. Preloading
41.Which client-side technique is used to ensure that a web page displays correctly in different
web browsers?
a. Event handling
b. Form validation
c. Responsive design
d. Browser compatibility
42.What is the purpose of HTML in web programming?
a. To control the visual appearance of web pages
b. To handle server-side processing and database interactions
c. To specify the structure and content of web pages
d. To add interactivity and dynamic behavior to web pages
43.Which HTML element is used to create a heading in a web page?
a. <p>
b. <div>
c. <h1>
d. <a>
44.Which HTML element is used to create a paragraph in a web page?
a. <h1>
b. <div>
c. <p>
d. <a>
45.Which HTML element is used to create an unordered list in a web page?
a. <ul>
b. <li>
c. <ol>
d. <a>
46.Which HTML element is used to create a link in a web page?
a. <h1>
b. <div>
c. <p>
d. <a>
47.Which CSS property is used to control the spacing between elements in a web page?
a. color
b. font-size
c. margin
d. padding
48.Which CSS property is used to change the color of text in a web page?
a. color
b. font-size
c. margin
d. padding
49.Which CSS property is used to change the size of text in a web page?
a. color
b. font-size
c. margin
d. padding
50.Which CSS property is used to align content vertically within its container?
a. text-align
b. vertical-align
c. align-content
d. justify-content
51.Which CSS property is used to create a border around an element in a web page?
a. color
b. font-size
c. border
d. padding
52.Which CSS property is used to control the space inside the border of an element in a web
page?
a. color
b. font-size
c. margin
d. padding
53.Which web technology is commonly used for managing the content of information-rich
websites?
a. HTML
b. CSS
c. JavaScript
d. Content Management System (CMS)
54.What is the purpose of a database in web programming?
a. To control the visual appearance of web pages
b. To handle server-side processing and database interactions
c. To specify the structure and content of web pages
d. To add interactivity and dynamic behavior to web pages
55.Which SQL statement is used to retrieve data from a database?
a. INSERT INTO
b. UPDATE
c. DELETE FROM
d. SELECT
56.Which programming language is commonly used for server-side scripting in web
programming?
a. HTML
b. CSS
c. JavaScript
d. PHP
57.Which HTML form element is used to create a text input field?
a. <input type=”text”>
b. <input type=”checkbox”>
c. <input type=”radio”>
d. <input type=”submit”>
58.Which HTML form element is used to create a checkbox?
a. <input type=”text”>
b. <input type=”checkbox”>
c. <input type=”radio”>
d. <input type=”submit”>
59.Which HTML form element is used to create a radio button?
a. <input type=”text”>
b. <input type=”checkbox”>
c. <input type=”radio”>
d. <input type=”submit”>
showhide type=”link59″ more_text=”Show Question” less_text=”Hide Question”] c. <input type=”radio”> [/showhide]
60.Which HTML form element is used to create a button that submits a form?
a. <input type=”text”>
b. <input type=”checkbox”>
c. <input type=”radio”>
d. <input type=”submit”>
61.Which client-side technique is commonly used to validate form input before submitting it to
the server?
a. HTML
b. CSS
c. JavaScript
d. PHP
62.What is a client-server system in web programming?
a. A system where the client and server are the same machine
b. A system where the client and server are different machines and communicate over a network
c. A system where the client and server are different browsers running on the same machine
d. A system where the client and server are different web pages on the same website
network
63.Which protocol is commonly used for communication between a web client and server?
a. HTTP
b. FTP
c. TCP/IP
d. SMTP
64.Which method in HTTP is used to retrieve a resource from a server?
a. GET
b. POST
c. PUT
d. DELETE
65.Which method in HTTP is used to send data to a server for processing?
a. GET
b. POST
c. PUT
d. DELETE
66.Which HTTP status code indicates a successful request?
a. 200
b. 300
c. 400
d. 500
67.Which HTTP status code indicates that the requested resource is not found on the server?
a. 200
b. 300
c. 400
d. 404
68.What is concurrency in the context of client-server systems?
a. The ability of the server to handle multiple clients simultaneously
b. The ability of the client to handle multiple servers simultaneously
c. The ability of the server to handle multiple requests from a single client
d. The ability of the client to handle multiple requests to a single server
69.What is a race condition in the context of concurrency?
a. A condition where two or more clients compete to establish a connection with the server
b. A condition where two or more servers compete to respond to a client request
c. A condition where multiple threads or processes access shared resources in an unpredictable
manner
d. A condition where multiple clients send duplicate requests to the server
unpredictable manner
70.Which synchronization technique is commonly used to prevent race conditions in clientserver systems?
a. Mutex locks
b. Spinlocks
c. Semaphores
d. Message queues
71.What is a callback function in the context of client-server systems?
a. A function that is called by the server to notify the client about a completed operation
b. A function that is called by the client to request a specific operation from the server
c. A function that is called by the server to handle concurrent client requests
d. A function that is called by the client to synchronize with the server
72.Which protocol is commonly used for asynchronous communication between a client and
server?
a. HTTP
b. FTP
c. TCP/IP
d. WebSocket
73.What is long polling in client-server communication?
a. A technique where the server continuously sends updates to the client
b. A technique where the client continuously sends requests to the server for updates
c. A technique where the server holds a request from the client until new data is available
d. A technique where the client holds a request from the server until new data is available
available
74.Which programming language is commonly used for server-side scripting in web
programming?
a. HTML
b. CSS
c. JavaScript
d. PHP
75.Which programming language is commonly used for client-side scripting in web
programming?
a. HTML
b. CSS
c. JavaScript
d. PHP
76.Which protocol is commonly used for secure communication between a client and server?
a. HTTP
b. FTP
c. TCP/IP
d. HTTPS
77.What is a load balancer in the context of client-server systems?
a. A device that balances the load between multiple clients
b. A device that balances the load between multiple servers
c. A device that balances the load between the client and server
d. A device that balances the load between different network protocols
78.Which mechanism is commonly used for session management in client-server systems?
a. Cookies
b. HTML forms
c. URL parameters
d. Server-side caching
79.What is AJAX in web programming?
a. A programming language for server-side scripting
b. A database management system
c. A technique for asynchronous client-server communication
d. A web server software
80.What is a RESTful API?
a. An API that supports real-time communication between client and server
b. An API that uses the REST architectural style for client-server communication
c. An API that only supports server-to-server communication
d. An API that is used for database management
81.What is server-side caching in client-server systems?
a. A technique to store client-side data on the server
b. A technique to store server-side data on the client
c. A technique to store frequently accessed server-side data in memory for faster retrieval
d. A technique to store client and server data in a separate cache server
retrieval