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. Data structure Queue is also known as _____ list.a.All of theseb.First In Last Outc.Last In First Outd.First In First Out Loading... 2. 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... 3. Question a.1 2 3b.70 20 90 40c.2 4 6 8d.5 10 15 40 Loading... 4. To read the entire content of file (file object ‘f’)?a.f.read(all)b.f.reads( )c.f.read( )d.f.read( * ) Loading... 5. To add a new element to a list we use which Python command?a.list1.append(5)b.list1.addLast(5)c.list1.addEnd(5)d.list1.add(5) Loading... 6. Question a.{‘a’, ‘b’, ‘c’, [‘p’, ‘q’], ‘san}b.{‘abc’, ‘p’, ‘q’, ‘san’}c.{‘a’, ‘b’, ‘c’, ‘p’, ‘q’, ‘san’}d.{'q', 'a', 'b', 'c', 'p', 'san'} Loading... 7. Question a.cdb.dcc.abd.a Loading... 8. Python identifiers are case-sensitive.a.Depends on the computer systemb.Depends on Programc.TRUEd.FALSE Loading... 9. Data structure stack is also known as _____ list.a.Last In First Outb.All of thesec.First In First Outd.Last In Last Out Loading... 10. Question a.1001b.1101c.110d.Infinite loop Loading... 11. The process of inserting an element in stack is called:a.Evaluationb.Popc.Created.Push Loading... 12. Question a.4 2b.2 1c.2 4d.3 1 Loading... 13. Question a.6s blank spaces before Online and Testb.6s blank spaces after Online-Testc.no changed.6s blank spaces before Online-Test Loading... 14. If a user tries to remove an element from empty queue, it is called _____.a.Overflowb.Underflowc.Garbage Collectiond.Empty collection Loading... 15. Question a.ii,i,iv,iii,v,vib.ii,i,iii,iv,v,vic.i,ii,iii,iv,vi,vd.i,ii,iii,iv,v,vi Loading... 16. 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.In Python all functions should have a docstringc.Docstrings can be accessed by the __doc__ attribute on objectsd.All of the mentioned Loading... 17. Pushing an element into stack already having ten elements and stack has fixed size of 10, then _____ occurs.a.Crashb.Underflowc.Overflowd.User flow Loading... 18. What is the result of math.fsum([.1 for i in range(10)])?a.1b.1.0c.1.0000000000100000d.10 Loading... 19. Question a.1 2b.1 2 3c.none of the mentionedd.error Loading... 20. Which one of the following is not a keyword in Python language?a.evalb.nonlocalc.passd.assert Loading... 21. Stack can be implemented using _________ and ________ ?a.Queue and Linked Listb.Array and Binary Treec.Array and Linked Listd.Linked List and Graph Loading... 22. Mode to create a new file if the file does not exist?a.append modeb.Both of the abovec.None of the aboved.write mode Loading... 23. What are the two main types of functions in Python?a.Built-in function & User defined functionb.User functionc.System functiond.Custom function Loading... 24. Question a.0.0 1.0b.0 1c.errord.none of the mentioned Loading... 25. Which of the following statements is used to create an empty set in Python?a.( )b.set()c.[ ]d.{ } Loading... 26. Question a.5.5b.5c.6d.5.6 Loading... 27. Suppose t = (1, 2, 4, 3), which of the following is incorrect?a.print(t[3])b.print(len(t))c.t[3] = 45d.print(max(t)) Loading... 28. Python identifiers are case-sensitive.a.FALSEb.TRUEc.Depends on Programd.Depends on the computer system Loading... 29. Question a.Hello foo and binb.Hello bin and binc.Hello (‘foo’, ‘bin’) and (‘foo’, ‘bin’)d.None of the mentioned Loading... 30. Function to read data from Text File?a.pickle( )b.dump( )c.read( )d.writelines( ) Loading... 31. The process of removing an element from stack is called:a.Evaluationb.Createc.Popd.Push Loading... 32. 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... 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.