CUET 2024 Computer Science UNIT 1 – Computational Thinking and Programming – 2 MCQ Question Answers – MCQs for Practice by Meenu Saini | May 17, 2022 | General | 0 comments Computer Science UNIT 1 – Computational Thinking and Programming – 2 MCQ Question Answers for CUET 2024 1. Which of the following statements is used to create an empty set in Python?a.( )b.set()c.[ ]d.{ } Loading... 2. What are the two main types of functions in Python?a.Built-in function & User defined functionb.System functionc.Custom functiond.User function Loading... 3. Question a.2 1b.2 4c.3 1d.4 2 Loading... 4. To add a new element to a list we use which Python command?a.list1.addLast(5)b.list1.addEnd(5)c.list1.append(5)d.list1.add(5) Loading... 5. Data structure stack is also known as _____ list.a.Last In Last Outb.All of thesec.Last In First Outd.First In First Out Loading... 6. Question a.{‘a’, ‘b’, ‘c’, [‘p’, ‘q’], ‘san}b.{‘a’, ‘b’, ‘c’, ‘p’, ‘q’, ‘san’}c.{'q', 'a', 'b', 'c', 'p', 'san'}d.{‘abc’, ‘p’, ‘q’, ‘san’} Loading... 7. Suppose t = (1, 2, 4, 3), which of the following is incorrect?a.print(len(t))b.print(t[3])c.print(max(t))d.t[3] = 45 Loading... 8. The process of pickling in Python includes ____________a.conversion of a list into a datatableb.conversion of a Python object hierarchy into byte streamc.conversion of a datatable into a listd.conversion of a byte stream into Python object hierarchy Loading... 9. Data structure Queue is also known as _____ list.a.First In First Outb.All of thesec.Last In First Outd.First In Last Out Loading... 10. Which one of the following is not a keyword in Python language?a.assertb.evalc.nonlocald.pass Loading... 11. The process of inserting an element in stack is called:a.Createb.Popc.Evaluationd.Push Loading... 12. Stack can be implemented using _________ and ________ ?a.Linked List and Graphb.Array and Linked Listc.Array and Binary Treed.Queue and Linked List Loading... 13. Which of the following is a feature of Python DocString?a.Docstrings can be accessed by the __doc__ attribute on objectsb.In Python all functions should have a docstringc.All of the mentionedd.It provides a convenient way of associating documentation with Python modules, functions, classes, and methods Loading... 14. To read the entire content of file (file object ‘f’)?a.f.reads( )b.f.read( * )c.f.read(all)d.f.read( ) Loading... 15. The process of removing an element from stack is called:a.Pushb.Createc.Evaluationd.Pop Loading... 16. What is the result of math.fsum([.1 for i in range(10)])?a.10b.1.0000000000100000c.1.0d.1 Loading... 17. Mode to create a new file if the file does not exist?a.append modeb.None of the abovec.Both of the aboved.write mode Loading... 18. Question a.0 1b.0.0 1.0c.none of the mentionedd.error Loading... 19. Question a.{'a', 'c', 'b', 'e', 'd', '$'}b.{'$', 'b', 'e', 'a', 'c', 'd'}c.{'a', 'd', '$', 'c', 'e', 'b'}d.{'d', 'a', 'c', '$', 'b', 'e'} Loading... 20. Function to read data from Text File?a.dump( )b.writelines( )c.read( )d.pickle( ) Loading... 21. Pushing an element into stack already having ten elements and stack has fixed size of 10, then _____ occurs.a.User flowb.Crashc.Overflowd.Underflow Loading... 22. Question a.ii,i,iii,iv,v,vib.i,ii,iii,iv,v,vic.i,ii,iii,iv,vi,vd.ii,i,iv,iii,v,vi Loading... 23. If a user tries to remove an element from empty queue, it is called _____.a.Underflowb.Empty collectionc.Overflowd.Garbage Collection Loading... 24. Question a.5.6b.6c.5d.5.5 Loading... 25. Question a.1 2b.1 2 3c.none of the mentionedd.error Loading... 26. Question a.None of the mentionedb.Hello (‘foo’, ‘bin’) and (‘foo’, ‘bin’)c.Hello bin and bind.Hello foo and bin Loading... 27. Question a.abb.dcc.cdd.a Loading... 28. Question a.1101b.Infinite loopc.1001d.110 Loading... 29. Python identifiers are case-sensitive.a.Depends on the computer systemb.Depends on Programc.FALSEd.TRUE Loading... 30. Python identifiers are case-sensitive.a.Depends on Programb.FALSEc.Depends on the computer systemd.TRUE Loading... 31. Question a.1 2 3b.70 20 90 40c.5 10 15 40d.2 4 6 8 Loading... 32. Question a.6s blank spaces before Online and Testb.6s blank spaces after Online-Testc.no changed.6s blank spaces before Online-Test Loading... Loading... Also Check out Related CUET Computer Science MCQs Links Computer Science Unit 2 – Computer Networks MCQs Computer Science Unit 3 – Database Management MCQs Submit a Comment Cancel replyYou must be logged in to post a comment.