Skip to main content

Introduction to Computing MCQs with Answers

Practice important Introduction to Computing MCQs with answers and explanations.

Chapter: 75
Q1061:
What does the xml:lang attribute specify in XML?
A. Document language
B. Document encoding
C. Element type
D. Document version
Correct Answer: A
Chapter: 75
Q1062:
What is the purpose of the XML <?xml version="1.0"?> declaration?
A. To specify document encoding
B. To define XML version
C. To link external files
D. To declare namespaces
Correct Answer: B
Chapter: 75
Q1063:
How are attributes defined in an XML tag?
A. attr="value"
B. attribute="value"
C. value="attr"
D. attr(value)
Correct Answer: A
Chapter: 76
Q1064:
What is a client-side script?
A. A script run on the server
B. A script run on the client
C. A script that runs both server and client
D. A script used for server management
Correct Answer: B
Chapter: 76
Q1065:
Which language is commonly used for client-side scripting?
A. PHP
B. JavaScript
C. Python
D. Ruby
Correct Answer: B
Chapter: 76
Q1066:
What is the main role of server-side scripting?
A. To enhance user interfaces
B. To handle server operations
C. To create dynamic content on the client side
D. To manage client-side storage
Correct Answer: B
Chapter: 76
Q1067:
Which language is commonly used for server-side scripting?
A. JavaScript
B. PHP
C. HTML
D. CSS
Correct Answer: B
Chapter: 76
Q1068:
How does client-side scripting interact with the server?
A. Directly via SQL queries
B. Through HTTP requests
C. By modifying server files
D. By accessing server-side scripts directly
Correct Answer: B
Chapter: 76
Q1069:
What is AJAX used for in web development?
A. To manage databases
B. To send asynchronous requests to the server
C. To style web pages
D. To create server-side applications
Correct Answer: B
Chapter: 76
Q1070:
What is the purpose of the HTTP method POST?
A. To retrieve data from the server
B. To send data to the server
C. To update data on the server
D. To delete data from the server
Correct Answer: B
Chapter: 76
Q1071:
Which of the following is a common use of client-side scripting?
A. Handling user input validation
B. Processing database queries
C. Managing server-side sessions
D. Configuring server settings
Correct Answer: A
Chapter: 76
Q1072:
What does the fetch API do in JavaScript?
A. It fetches server logs
B. It sends HTTP requests to servers
C. It updates the server-side database
D. It processes server-side scripts
Correct Answer: B
Chapter: 76
Q1073:
Which protocol is commonly used for client-server communication on the web?
A. FTP
B. SMTP
C. HTTP
D. IMAP
Correct Answer: C
Chapter: 76
Q1074:
What is a common client-side library used for manipulating the DOM?
A. jQuery
B. Node.js
C. Express.js
D. Django
Correct Answer: A
Chapter: 76
Q1075:
What is the main purpose of server-side rendering (SSR)?
A. To improve client-side performance
B. To generate HTML on the server and send it to the client
C. To manage client-side scripts
D. To handle client-side events
Correct Answer: B
Chapter: 76
Q1076:
How does a web browser execute client-side JavaScript?
A. By interpreting and running the code directly
B. By sending the code to the server
C. By converting it into server-side code
D. By compiling it into machine code
Correct Answer: A
Chapter: 76
Q1077:
Which of the following is an example of a server-side technology?
A. JavaScript
B. HTML
C. PHP
D. CSS
Correct Answer: C
Chapter: 76
Q1078:
What is the function of a web server in a client-server model?
A. To manage client-side scripting
B. To process and respond to client requests
C. To store client-side data
D. To create client-side interfaces
Correct Answer: B
Chapter: 76
Q1079:
What does the async attribute do in JavaScript when used in a script tag?
A. It executes the script after the page loads
B. It loads the script asynchronously
C. It executes the script synchronously
D. It prevents the script from running
Correct Answer: B
Chapter: 76
Q1080:
What is a common method for server-side scripting to interact with a database?
A. Using SQL queries
B. Using CSS
C. Using HTML
D. Using client-side scripts
Correct Answer: A

Test Your Knowledge

Take a timed quiz on Introduction to Computing

🚀 Start Quiz Now