Partial preview of the text
Download COMPUTER SCIENCE MCQ'S FOR 12 GRADE LEVEL and more Exercises Computer Programming in PDF only on Docsity!
i) CUET UG Computer Science - 50 MCQs with Answers 1. Which among the following is the fastest technique to search for an element? A) Binary Search 8B) Linear Search C) Hashing D) All of the above Answer: C What happens when several elements compete for the same slot in a hash table? A) Duplication B) Collision C) Replication D) None Answer: B In Python, the exception handling block is defined by which keyword? A) try..except 8B) try..catch C) throw...catch D) if...else Answer: A Which data structure follows FIFO order? A) Stack B) Queue C)Tree D) Graph Answer: B Which sorting algorithm has average-case complexity O(n log n)? A) Bubble Sort B) Insertion Sort C) Merge Sort D) Selection Sort Answer: C Which SQL command removes duplicate rows from a result set? A) DISTINCT B)UNIQUE C) REMOVE D) NONE Answer: A Which of the following is a mutable data type in Python? A) String B)Tuple C)List D) Integer Answer: C Which of these is not a valid relational operator in Python? A) == B)!= C)<> D)<= Answer: C 10. 11. 12. 13. 14. 15. 16. . In DBMS, what does ACID stand for? A) Atomicity, Consistency, Isolation, Durability Answer: A Which of the following is not a database model? A) Relational B) Hierarchical C) Network D) Structural Answer: D Which data type is used to represent textual data in Python? A) int B) float C)str D) bool Answer: C Which of the following is a type of cyber threat? A) Phishing 8B) Firewall C) Antivirus D) Software Update Answer: A Which protocol is used to transfer files over the internet? A)HTTP B)FTP C)IP D)TCP Answer: B Which is not an example of a loop in Python? A) for B)while C)loop D)None Answer: C Which method is used to add an element to a list in Python? A) insert() B) append() C)add() D) extend() Answer: B Which operator is used for exponentiation in Python? A)* B)** C)/ D)% Answer: B a 25. 26. 27. 28. 29. 30. 31. 32. € > CC & chatgpt.com/c/68887c70-a4 * ChatGPT v Which Python module is used for data analysis? A) NumPy B)Pandas C) Matplotlib D) Seaborn Answer: B Which operator is used for integer division in Python? A)/ B)// C)% D)** Answer: B Which is not a component of computer networks? A) Router B) Switch C) Compiler D) Modem Answer: C Which of these is a valid Python identifier? A) var B)_var C)var-name_ D) var name Answer: B Which data structure uses LIFO? A) Queue 8B) Array C) Stack D) List Answer: C Which protocol is used for secure web communication? A)FTP B)HTTP C)HTTPS D)TCP Answer: C Which language is primarily used for database query? A)HTML B)SQL C)C++ D) Python Answer: B Which built-in function returns the length of a list in Python? A) count() B) size() C)length() D) lend Answer: D Y 33. 34. 35. 36. 37. 38. 39. 40. What is the output of bool(0)? A) True B)False C)0O D)None Answer: B Which library is used to plot graphs in Python? A) Numpy 8B) Matplotlib C) Pandas D) Scipy Answer: B Which keyword is used to create a class? A) create B) object C)def D) class Answer: D Which is a library for numerical computing in Python? A) NumPy 8B) Tkinter C) Django D)SQL Answer: A In databases, rows are also called: A) Fields B) Tables C) Records D) Columns Answer: C Which device connects different networks? A) Switch B)Modem C) Router D) Bridge Answer: C Which of the following is not a valid file mode in Python? A)'r B)'w C)'e’ D)'a’ Answer: C Which Python function is used to get user input? A) print() B)enter() C)input(Q) D) get() Answer: C 49. Which of these is not a valid data type in Python? A) integer B) float C)real D) complex Answer: C 50. What is the default port for HTTP? A) 443 B)21 C)80 D) 8080 Answer: C