Computer Mcq

Computer Science and Website MCQs

  1. What does HTML stand for?
    A) HyperText Markup Language (S)
    B) HighText Machine Language
    C) HyperTool Multi Language
    D) HyperTransfer Markup Language
  2. Which protocol is primarily used for secure communication over the internet?
    A) FTP
    B) HTTP
    C) HTTPS (S)
    D) SMTP
  3. What is the purpose of CSS in web development?
    A) To define the structure of a webpage
    B) To style and format the appearance of a webpage (S)
    C) To add interactivity to a webpage
    D) To manage server-side logic
  4. Which HTML tag is used to create a hyperlink?
    A)
    B) (S)
    C)
    D)
  5. What does a 404 error indicate on a website?
    A) Server is down
    B) Page not found (S)
    C) Unauthorized access
    D) Bad gateway
  6. Which of the following is a front-end programming language?
    A) Python
    B) JavaScript (S)
    C) PHP
    D) Ruby
  7. What is the role of a web server?
    A) To store and manage databases
    B) To process and serve web pages to clients (S)
    C) To design web page layouts
    D) To secure user passwords
  8. Which file extension is commonly used for cascading style sheets?
    A) .html
    B) .css (S)
    C) .js
    D) .php
  9. What does the acronym DNS stand for?
    A) Domain Name System (S)
    B) Dynamic Network Service
    C) Data Name Server
    D) Digital Network System
  10. Which HTML element is used to define the title of a webpage?
    A)
    B) (S)
    C)
    D)
  11. What is the purpose of JavaScript in a website?
    A) To style web pages
    B) To add interactivity and dynamic content (S)
    C) To manage databases
    D) To secure data transmission
  12. Which of the following is a content management system (CMS)?
    A) WordPress (S)
    B) Apache
    C) MySQL
    D) Node.js
  13. What is the default port number for HTTP?
    A) 21
    B) 80 (S)
    C) 443
    D) 8080
  14. Which HTML attribute specifies an alternate text for an image?
    A) src
    B) alt (S)
    C) title
    D) href
  15. What does SEO stand for in the context of websites?
    A) System Engine Optimization
    B) Search Engine Optimization (S)
    C) Secure Electronic Operation
    D) Standard Encoding Output
  16. Which of the following is used to make a website responsive?
    A) JavaScript frameworks
    B) CSS media queries (S)
    C) Database queries
    D) Server-side scripts
  17. What is the purpose of a robots.txt file?
    A) To store user data
    B) To instruct search engine crawlers (S)
    C) To secure a website
    D) To style a webpage
  18. Which language is primarily used for server-side scripting?
    A) HTML
    B) CSS
    C) PHP (S)
    D) JavaScript
  19. What does the tag in HTML represent?
    A) A division or section in a webpage (S)
    B) A hyperlink
    C) A form input
    D) A table row
  20. Which of the following is a JavaScript framework?
    A) Django
    B) React (S)
    C) Laravel
    D) Flask
  21. What is the purpose of the tag in HTML?
    A) To define the structure of a webpage
    B) To provide metadata about the document (S)
    C) To create a navigation bar
    D) To embed external scripts
  22. Which protocol is used to transfer files to a web server?
    A) HTTP
    B) FTP (S)
    C) SMTP
    D) DNS
  23. What does API stand for in web development?
    A) Application Programming Interface (S)
    B) Automated Process Integration
    C) Advanced Protocol Interface
    D) Application Protocol Interaction
  24. Which CSS property controls the text size?
    A) font-size (S)
    B) text-style
    C) font-weight
    D) text-align
  25. What is a cookie in the context of websites?
    A) A small text file stored on a user’s device (S)
    B) A server-side script
    C) A type of database
    D) A styling rule
  26. Which HTML tag is used to create an unordered list?
    A)
    B) (S)
    C)
    D)
  27. What is the purpose of a sitemap in web development?
    A) To style a webpage
    B) To provide a structured overview of a website’s content (S)
    C) To secure user data
    D) To manage server resources
  28. Which of the following is a backend database commonly used with websites?
    A) MySQL (S)
    B) HTML
    C) CSS
    D) JavaScript
  29. What does the term “responsive design” refer to in web development?
    A) Designing websites to respond to user inputs
    B) Creating websites that adapt to different screen sizes (S)
    C) Optimizing websites for search engines
    D) Securing websites against attacks
  30. Which HTTP method is typically used to submit form data to a server?
    A) GET
    B) POST (S)
    C) PUT
    D) DELETE