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. Question a.5 10 15 40b.70 20 90 40c.1 2 3d.2 4 6 8 Loading... 2. Question a.Hello bin and binb.None of the mentionedc.Hello foo and bind.Hello (‘foo’, ‘bin’) and (‘foo’, ‘bin’) Loading... 3. Question a.5.5b.6c.5d.5.6 Loading... 4. Pushing an element into stack already having ten elements and stack has fixed size of 10, then _____ occurs.a.Overflowb.Crashc.Underflowd.User flow Loading... 5. The process of removing an element from stack is called:a.Popb.Createc.Pushd.Evaluation Loading... 6. Python identifiers are case-sensitive.a.Depends on the computer systemb.FALSEc.TRUEd.Depends on Program Loading... 7. Which of the following is a feature of Python DocString?a.It provides a convenient way of associating documentation with Python modules, functions, classes, and methodsb.All of the mentionedc.Docstrings can be accessed by the __doc__ attribute on objectsd.In Python all functions should have a docstring Loading... 8. Function to read data from Text File?a.read( )b.dump( )c.pickle( )d.writelines( ) Loading... 9. Stack can be implemented using _________ and ________ ?a.Array and Binary Treeb.Array and Linked Listc.Queue and Linked Listd.Linked List and Graph Loading... 10. Mode to create a new file if the file does not exist?a.None of the aboveb.append modec.Both of the aboved.write mode Loading... 11. Which of the following statements is used to create an empty set in Python?a.( )b.set()c.{ }d.[ ] Loading... 12. The process of pickling in Python includes ____________a.conversion of a list into a datatableb.conversion of a byte stream into Python object hierarchyc.conversion of a datatable into a listd.conversion of a Python object hierarchy into byte stream Loading... 13. Question a.no changeb.6s blank spaces before Online and Testc.6s blank spaces before Online-Testd.6s blank spaces after Online-Test Loading... 14. To add a new element to a list we use which Python command?a.list1.append(5)b.list1.addLast(5)c.list1.add(5)d.list1.addEnd(5) Loading... 15. Question a.errorb.0 1c.0.0 1.0d.none of the mentioned Loading... 16. If a user tries to remove an element from empty queue, it is called _____.a.Overflowb.Empty collectionc.Underflowd.Garbage Collection Loading... 17. What is the result of math.fsum([.1 for i in range(10)])?a.1b.1.0c.10d.1.0000000000100000 Loading... 18. Which one of the following is not a keyword in Python language?a.evalb.passc.nonlocald.assert Loading... 19. Suppose t = (1, 2, 4, 3), which of the following is incorrect?a.print(t[3])b.t[3] = 45c.print(max(t))d.print(len(t)) Loading... 20. Question a.{'a', 'd', '$', 'c', 'e', 'b'}b.{'a', 'c', 'b', 'e', 'd', '$'}c.{'$', 'b', 'e', 'a', 'c', 'd'}d.{'d', 'a', 'c', '$', 'b', 'e'} Loading... 21. Question a.{'q', 'a', 'b', 'c', 'p', 'san'}b.{‘a’, ‘b’, ‘c’, ‘p’, ‘q’, ‘san’}c.{‘a’, ‘b’, ‘c’, [‘p’, ‘q’], ‘san}d.{‘abc’, ‘p’, ‘q’, ‘san’} Loading... 22. Question a.4 2b.2 4c.3 1d.2 1 Loading... 23. To read the entire content of file (file object ‘f’)?a.f.read( * )b.f.read( )c.f.read(all)d.f.reads( ) Loading... 24. Question a.ii,i,iii,iv,v,vib.ii,i,iv,iii,v,vic.i,ii,iii,iv,vi,vd.i,ii,iii,iv,v,vi Loading... 25. Question a.110b.1001c.Infinite loopd.1101 Loading... 26. Data structure stack is also known as _____ list.a.First In First Outb.All of thesec.Last In First Outd.Last In Last Out Loading... 27. Question a.1 2b.none of the mentionedc.1 2 3d.error Loading... 28. Python identifiers are case-sensitive.a.Depends on Programb.TRUEc.Depends on the computer systemd.FALSE Loading... 29. What are the two main types of functions in Python?a.Built-in function & User defined functionb.System functionc.User functiond.Custom function Loading... 30. Data structure Queue is also known as _____ list.a.First In First Outb.First In Last Outc.All of thesed.Last In First Out Loading... 31. The process of inserting an element in stack is called:a.Evaluationb.Popc.Pushd.Create Loading... 32. Question a.abb.cdc.dcd.a 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.