Chat GPT Questions
Chat GPT Questions
Chat GPT Questions
11. Which data structure is typically used to implement a Last-In-First-Out (LIFO) behavior?
a) Queue
b) Stack
c) Tree
d) Linked List
12. What is the time complexity of inserting an element at the beginning of an array?
a) O(1)
b) O(log n)
c) O(n)
d) O(n^2)
13. Which sorting algorithm has the best time complexity in the average case?
a) Bubble Sort
b) Selection Sort
c) Merge Sort
d) Quick Sort
14. What is the purpose of a hash function in data structures?
a) To sort elements in ascending order
b) To convert data into a fixed-size string of characters
c) To map data to a fixed-size array index
d) To delete elements from a data structure
16. Which logic gate produces a low output only when all inputs are low?
a) AND gate
b) OR gate
c) NOR gate
d) NAND gate
17. What is the binary representation of the decimal number 13?
a) 1101
b) 1001
c) 1111
d) 1011
18. Which of the following is a non-volatile memory type?
a) RAM
b) Cache memory
c) ROM
d) Register
19. What does the ALU stand for in computer architecture?
a) Arithmetic and Logic Unit
b) Access and Loading Unit
c) Assembly and Loading Unit
d) Algorithmic and Logical Unit
20. Which component is responsible for storing frequently accessed data for quick retrieval in a
computer system?
a) Cache memory
b) RAM
c) Hard disk
d) Optical drive
26. Which type of database model organizes data into tables with rows and columns?
a) Hierarchical
b) Network
c) Relational
d) Object-Oriented
27. What is the purpose of a primary key in a database table?
a) To uniquely identify each row in the table
b) To define constraints on the data types allowed in the table
c) To establish relationships with other tables
d) To sort the rows in ascending order
28. Which database operation is used to retrieve specific data from a table based on a given condition?
a) INSERT
b) UPDATE
c) DELETE
d) SELECT
29. What is the purpose of normalization in database design?
a) To increase redundancy
b) To reduce data integrity
c) To eliminate duplicate data
d) To simplify queries
30. Which type of join returns only the rows that have matching values in both tables being joined?
a) Inner join
b) Outer join
c) Left join
d) Right join
36. Which layer of the OSI model is responsible for logical addressing and routing?
a) Physical layer
b) Data link layer
c) Network layer
d) Transport layer
37. What is the purpose of the TCP protocol in computer networks?
a) To establish a connection between devices
b) To guarantee the delivery of packets
c) To resolve domain names to IP addresses
d) To transmit data over the network
38. Which network topology connects all devices in a linear sequence?
a) Bus
b) Ring
c) Star
d) Mesh
39. What is the purpose of DNS in computer networks?
a) To translate domain names to IP addresses
b) To secure data transmission
c) To establish a direct connection between devices
d) To filter network traffic
40. Which protocol is used to send email messages over the internet?
a) HTTP
b) FTP
c) SMTP
d) TCP
66. Which of the following is not a valid numerical computing library in Python?
a) NumPy
b) SciPy
c) Pandas
d) Matplotlib
67. What is the purpose of linear interpolation in numerical computing?
a) To approximate values between known data points
b) To solve systems of linear equations
c) To calculate the derivative of a function
d) To perform matrix multiplication
68. Which numerical method is used to find the roots of a nonlinear equation?
a) Newton-Raphson method
b) Euler's method
c) Gaussian elimination
d) Simpson's rule
69. What is the purpose of numerical integration in numerical computing?
a) To approximate the area under a curve
b) To solve differential equations
c) To optimize functions
d) To interpolate data points
70. Which numerical technique is used to approximate the solution to a differential equation?
a) Finite difference method
b) Gradient descent
c) Singular value decomposition
d) LU decomposition
78. Which logic gate produces a high output only when all inputs are high?
a) AND gate
b) OR gate
c) NOR gate
d) NAND gate
79. What is the binary representation of the decimal number 10?
a) 1010
b) 1100
c) 1110
d) 1001
16. Which logic gate produces a low output only when all inputs are low?
Answer: c) NOR gate
17. What is the binary representation of the decimal number 13?
Answer: a) 1101
18. Which of the following is a non-volatile memory type?
Answer: c) ROM
19. What does the ALU stand for in computer architecture?
Answer: a) Arithmetic and Logic Unit
20. Which component is responsible for storing frequently accessed data for quick retrieval in a
computer system?
Answer: a) Cache memory
26. Which type of database model organizes data into tables with rows and columns?
Answer: c) Relational
27. What is the purpose of a primary key in a database table?
Answer: a) To uniquely identify each row in the table
28. Which database operation is used to retrieve specific data from a table based on a given condition?
Answer: d) SELECT
29. What is the purpose of normalization in database design?
Answer: c) To eliminate duplicate data
30. Which type of join returns only the rows that have matching values in both tables being joined?
Answer: a) Inner join
36. Which layer of the OSI model is responsible for logical addressing and routing?
Answer: c) Network layer
37. What is the purpose of the TCP protocol in computer networks?
Answer: b) To guarantee the delivery of packets
38. Which network topology connects all devices in a linear sequence?
Answer: b) Ring
39. What is the purpose of DNS in computer networks?
Answer: a) To translate domain names to IP addresses
40. Which protocol is used to send email messages over the internet?
Answer: c) SMTP
66. Which of the following is not a valid numerical computing library in Python?
Answer: c) Pandas
67. What is the purpose of linear interpolation in numerical computing?
Answer: a) To approximate values between known data points
68. Which numerical method is used to find the roots of a nonlinear equation?
Answer: a) Newton-Raphson method
69. What is the purpose of numerical integration in numerical computing?
Answer: a) To approximate the area under a curve
70. Which numerical technique is used to approximate the solution to a differential
equation?
Answer: a) Finite difference method