COMPUTER BASIC MCQ QUESTIONS



1. What does CPU stand for? a) Computer Personal Unit b) Central Processing Unit c) Central Personal Unit d) Computer Processing Unit Answer: b) Central Processing Unit
2. Which programming language is known as the "mother of all languages"? a) Python b) C++ c) Java d) C Answer: d) C
3. What is the purpose of an operating system?
a) To control hardware components b) To display advertisements c) To write programs d) To browse the internet Answer: a) To control hardware components
4. Which of the following is a web development framework? a) Photoshop b) Angular c) Excel d) PowerPoint Answer: b) Angular
5. What does HTML stand for? a) Hyper Text Markup Language b) High Technology Modern Language c) Hyperlink and Text Markup Language d) Hyper Transfer Markup Language Answer: a) Hyper Text Markup Language
6. Which data structure uses a Last-In-First-Out (LIFO) approach? a) Queue b) Stack c) Linked List d) Tree Answer: b) Stack
7. What is the primary purpose of an IP address? a) To identify a person's name b) To identify a website's owner c) To identify a device on a network d) To identify a software application Answer: c) To identify a device on a network
8. Which protocol is used for secure data transfer over the internet? a) HTTP b) FTP c) HTTPS d) SMTP Answer: c) HTTPS
9. What does RAM stand for? a) Read-Only Memory b) Random Access Memory c) Remote Access Memory d) Redundant Array of Memory Answer: b) Random Access Memory
10. Which programming language is often used for artificial intelligence and machine learning? a) Java b) Python c) C# d) Ruby Answer: b) Python
11. What is the purpose of an IP address? a) To identify a physical location b) To uniquely identify a device on a network c) To encrypt data d) To install software Answer: b) To uniquely identify a device on a network
12. Which computer language is used for artificial intelligence and machine learning? a) Python b) JavaScript c) Ruby d) C++ Answer: a) Python
13. What is the function of a GPU? a) Cooling the CPU b) Handling network traffic c) Rendering graphics and performing parallel processing d) Running operating system tasks Answer: c) Rendering graphics and performing parallel processing
14. Which protocol is used for sending and receiving emails? a) FTP b) HTTP c) SMTP d) SNMP Answer: c) SMTP
15. What does SQL stand for? a) Structured Query Language b) Simple Query Language c) Sequential Query Language d) Standard Query Language Answer: a) Structured Query Language
16. Which company developed the first commercially successful microprocessor? a) Intel b) AMD c) IBM d) Microsoft Answer: a) Intel
17. What is the purpose of a compiler? a) To convert high-level programming code into machine code b) To manage hardware resources c) To create graphics d) To design user interfaces Answer: a) To convert high-level programming code into machine code
18. Which type of software is designed to detect, prevent, and remove malicious software from a computer? a) Firewall b) Operating System c) Antivirus d) Text Editor Answer: c) Antivirus
19. Which data structure follows the Last-In-First-Out (LIFO) principle? a) Queue b) Linked List c) Stack d) Tree Answer: c) Stack
20. What is the maximum value that can be stored in a byte? a) 64 b) 128 c) 256 d) 512 Answer: c) 256
21. Which protocol is used for secure communication over the internet, often indicated by "https" in the URL? a) FTP b) HTTP c) SMTP d) SSL/TLS Answer: d) SSL/TLS
22. What does URL stand for? a) Uniform Resource Locator b) Universal Reference Locator c) Unified Resource Link d) Ultimate Retrieval Link Answer: a) Uniform Resource Locator
23. Which data structure organizes elements in key-value pairs? a) Array b) Linked List c) Dictionary d) Stack Answer: c) Dictionary
24. What is the purpose of a DNS server? a) To store passwords b) To block websites c) To convert domain names into IP addresses d) To manage network traffic Answer: c) To convert domain names into IP addresses
25. Which programming language is often used for web development and is known for its simplicity and readability? a) C++ b) Java c) Ruby d) JavaScript Answer: d) JavaScript
26. What is a compiler error? a) An error that occurs when a program runs b) An error that occurs during the compilation process c) An error that occurs in the CPU d) An error that occurs in the RAM Answer: b) An error that occurs during the compilation process
27. Which algorithm is used to sort a list of elements in ascending or descending order? a) Merge Sort b) Binary Search c) Depth-First Search d) Breadth-First Search Answer: a) Merge Sort
28. Which type of loop will always execute at least once, regardless of the condition? a) For loop b) While loop c) Do-while loop d) Nested loop Answer: c) Do-while loop
29. What is the purpose of a primary key in a database table? a) To store large text data b) To establish relationships between tables c) To ensure each record has a unique identifier d) To define the data type of a field Answer: c) To ensure each record has a unique identifier
30. Which of the following is not a valid data type in programming? a) Integer b) Float c) String d) Loop Answer: d) Loop
31. What is the process of converting high-level programming code into machine code called? a) Execution b) Interpretation c) Compilation d) Debugging Answer: c) Compilation
32. Which algorithm is used to find the shortest path between nodes in a weighted graph? a) Depth-First Search b) Breadth-First Search c) Dijkstra's Algorithm d) Merge Sort Answer: c) Dijkstra's Algorithm
33. Which programming paradigm focuses on defining data structures and the operations that can be performed on them? a) Procedural b) Object-Oriented c) Functional d) Logical Answer: b) Object-Oriented
34. Which operator is used to access a member of a class in object-oriented programming? a) . b) -> c) :: d) : Answer: a) .
35. What is the purpose of version control systems like Git? a) To create graphical user interfaces b) To manage software licenses c) To track changes in code and collaborate on projects d) To optimize CPU performance Answer: c) To track changes in code and collaborate on projects
36. Which data structure represents a hierarchical structure with a single root node and child nodes? a) Queue b) Linked List c) Stack d) Tree Answer: d) Tree
37. Which layer of the OSI model is responsible for routing and forwarding data packets? a) Physical Layer b) Network Layer c) Transport Layer d) Application Layer Answer: b) Network Layer
38. What is the purpose of the "break" statement in programming? a) To terminate the program b) To skip an iteration of a loop c) To exit a loop or switch statement d) To generate an error Answer: c) To exit a loop or switch statement
39. Which type of attack involves sending malicious code as input to a program in order to exploit a vulnerability? a) Virus b) Trojan c) Phishing d) Injection Answer: d) Injection
40. What does the acronym HTTP stand for? a) Hyper Text Transfer Protocol b) High Tech Text Protocol c) Hyper Transfer Text Protocol d) Hyperlink Text Transfer Protocol Answer: a) Hyper Text Transfer Protocol
41. Which design pattern is used to create objects from a common interface using a factory class? a) Singleton b) Observer c) Factory Method d) Strategy Answer: c) Factory Method
42. What does API stand for? a) Application Protocol Interface b) Application Programming Interface c) Application Process Interface d) Application Presentation Interface Answer: b) Application Programming Interface
43. In object-oriented programming, what is encapsulation? a) The process of converting code into machine language b) The process of defining a class c) The process of hiding internal implementation details and providing a public interface d) The process of optimizing code for performance Answer: c) The process of hiding internal implementation details and providing a public interface
44. Which sorting algorithm has the best average and worst-case time complexity? a) Quick Sort b) Bubble Sort c) Insertion Sort d) Selection Sort Answer: a) Quick Sort
45. What is the purpose of a foreign key in a database table? a) To store large text data b) To establish relationships between tables c) To ensure each record has a unique identifier d) To define the data type of a field Answer: b) To establish relationships between tables
46. Which search algorithm requires the list to be sorted beforehand? a) Linear Search b) Binary Search c) Depth-First Search d) Breadth-First Search Answer: b) Binary Search
47. What is the purpose of the "this" keyword in object-oriented programming? a) To create a new instance of a class b) To reference the parent class c) To refer to the current object or instance of the class d) To call a method from another class Answer: c) To refer to the current object or instance of the class
48. Which type of database is designed for managing data in a tabular format with rows and columns? a) Relational Database b) NoSQL Database c) Hierarchical Database d) Object-Oriented Database Answer: a) Relational Database
49. What is a deadlock in computer science? a) A situation where a program crashes b) A situation where two or more processes are unable to proceed due to circular dependencies c) A situation where a program is infected with a virus d) A situation where a program's performance is severely degraded Answer: b) A situation where two or more processes are unable to proceed due to circular dependencies
50. Which programming language is often used for developing system-level software and operating systems? a) Python b) Java c) C d) Ruby Answer: c) C
Written by :AVINASH SIR Image Resizer

Image Resizer

1 Comments

Please Select Embedded Mode To Show The Comment System.*

Previous Post Next Post