{"id":4063,"date":"2023-08-08T18:52:32","date_gmt":"2023-08-08T13:22:32","guid":{"rendered":"https:\/\/cbsepython.in\/?p=4063"},"modified":"2025-07-23T20:27:03","modified_gmt":"2025-07-23T14:57:03","slug":"viva-questions-for-class-11-computer-science-python","status":"publish","type":"post","link":"https:\/\/cbsepython.in\/viva-questions-for-class-11-computer-science-python\/","title":{"rendered":"Viva Questions for Class 11 Computer Science Python"},"content":{"rendered":"<h2>Viva Questions for Class 11 Computer Science<\/h2>\n<p><span style=\"color: #000000;\">In this article students can find the most commonly asked\u00a0 &#8221; <strong>Viva Questions for Class 11 Computer Science Python<\/strong> &#8221; in their practical examination. <\/span><\/p>\n<p><span style=\"color: #000000;\">You have to take an overview of these viva questions to clear the basic concepts of python programming. These questions are totally based on the latest CBSE curriculum.\u00a0<\/span><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"text-decoration: underline; color: #000000;\">Viva Questions for Class 11 Computer Science Python<\/span><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p class=\"western\"><strong><span style=\"color: #000000;\">1. What is the purpose of the CPU in a computer system?<\/span><\/strong><\/p>\n<p class=\"western\"><span style=\"color: #000000;\">The Central Processing Unit (CPU) serves as the &#8220;brain&#8221; of any computer, responsible for processing instructions, performing calculations and managing data.<\/span><\/p>\n<h3><\/h3>\n<p class=\"western\"><strong><span style=\"color: #000000;\">2. Please explain RAM (Random Access Memory).<\/span><\/strong><\/p>\n<p class=\"western\"><span style=\"color: #000000;\">RAM is a volatile memory used by computers to store information currently being used by the CPU. With its quick access and quick retrieval capabilities, it allows for quicker data retrieval and manipulation.<\/span><\/p>\n<h3><\/h3>\n<p class=\"western\"><strong><span style=\"color: #000000;\">3. Compare system software with application software.<\/span><\/strong><\/p>\n<p class=\"western\"><span style=\"color: #000000;\">System software serves to manage and control computer hardware while application software specializes in performing specific tasks such as word processing or gaming.<\/span><\/p>\n<h3><\/h3>\n<p class=\"western\"><span style=\"color: #000000;\"><strong>4. What is an algorithm?<\/strong> <\/span><\/p>\n<p class=\"western\"><span style=\"color: #000000;\">An algorithm is a step-by-step procedure or set of rules designed to solve a problem or complete a task in an organized and systematic manner.<\/span><\/p>\n<h3><\/h3>\n<p class=\"western\"><strong><span style=\"color: #000000;\">5. Describe the function of an operating system.<\/span><\/strong><\/p>\n<p class=\"western\"><span style=\"color: #000000;\">An operating system provides hardware resource management, provides user interface features and facilitates program execution on computers.<\/span><\/p>\n<h3><\/h3>\n<p class=\"western\"><strong><span style=\"color: #000000;\">6. What is ASCII and how does it relate to character encoding?<\/span><\/strong><\/p>\n<p class=\"western\"><span style=\"color: #000000;\">ASCII (American Standard Code for Information Interchange) is a character encoding standard which assigns numeric values to characters used on computers. This gives computers a basic representation of characters.<\/span><\/p>\n<h3><\/h3>\n<p class=\"western\"><span style=\"color: #000000;\"><strong>7. How does a compiler differ from an interpreter?<\/strong> <\/span><\/p>\n<p class=\"western\"><span style=\"color: #000000;\">A compiler transforms all source code to machine code before execution, whereas an interpreter executes code line by line.<\/span><\/p>\n<h3><\/h3>\n<p class=\"western\"><strong><span style=\"color: #000000;\">8. Define Variable in Programming.<\/span><\/strong><\/p>\n<p class=\"western\"><span style=\"color: #000000;\">A variable is a name-able storage location which stores data that can be changed during program execution.<\/span><\/p>\n<h3><\/h3>\n<p class=\"western\"><span style=\"color: #000000;\"><strong>9. What is the purpose of a loop in programming?<\/strong> <\/span><\/p>\n<p class=\"western\"><span style=\"color: #000000;\">Loops allow a set of instructions to be repeated multiple times depending on a specified condition.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p class=\"western\"><strong><span style=\"color: #000000;\">10. Explain what string concatenation.<\/span><\/strong><\/p>\n<p class=\"western\"><span style=\"color: #000000;\">String concatenation involves connecting multiple strings together in order to form one longer one.<\/span><\/p>\n<h2 style=\"text-align: center;\"><span style=\"text-decoration: underline; color: #000000;\">Viva Questions for Class 11 Computer Science Python<\/span><\/h2>\n<p class=\"western\"><span style=\"color: #000000;\"><strong>11. Why use a flowchart when programming?<\/strong> <\/span><\/p>\n<p class=\"western\"><span style=\"color: #000000;\">Flowcharts provide an easy way to visualize and understand algorithms or programs, making them simpler for analysis and comprehension.<\/span><\/p>\n<h3><\/h3>\n<p class=\"western\"><span style=\"color: #000000;\"><strong>12. What are Conditional Statements in Python Programming?<\/strong> <\/span><\/p>\n<p class=\"western\"><span style=\"color: #000000;\">Conditional statements allow programs to make decisions and execute code blocks based on certain conditions.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p class=\"western\"><span style=\"color: #000000;\"><strong>13. What is the purpose of an if\/else statement?<\/strong> <\/span><\/p>\n<p class=\"western\"><span style=\"color: #000000;\">An if-else statement allows users to execute one block of code if certain conditions are true while another one executes when those conditions become false.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p class=\"western\"><strong><span style=\"color: #000000;\">14. Describe the Functions of the for Loop.<\/span><\/strong><\/p>\n<p class=\"western\"><span style=\"color: #000000;\">A for loop can be used to iterate over a sequence a fixed number of times; such as numbers or elements in a list.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p class=\"western\"><strong><span style=\"color: #000000;\">15. What does &#8220;Data Type&#8221; in Programming mean?<\/span><\/strong><\/p>\n<p class=\"western\"><span style=\"color: #000000;\">A data type defines what values can be stored within variables, such as integers, floats or strings.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p class=\"western\"><strong><span style=\"color: #000000;\">16. Define syntax error.<\/span><\/strong><\/p>\n<p class=\"western\"><span style=\"color: #000000;\">A syntax error occurs when code breaks the rules or structures of its programming language, leading to unexpected behavior in terms of both functionality and efficiency.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p class=\"western\"><span style=\"color: #000000;\"><strong>17. What is the purpose of the break statement?<\/strong> <\/span><\/p>\n<p class=\"western\"><span style=\"color: #000000;\">To exit an unplanned loop prematurely even if its condition still holds.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p class=\"western\"><strong><span style=\"color: #000000;\">18. Define a Function.<\/span><\/strong><\/p>\n<p class=\"western\"><span style=\"color: #000000;\">A function is a block of code that performs one specific task and can be called multiple times from different parts of a program.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p class=\"western\"><strong><span style=\"color: #000000;\">19. What is a Parameter in a Function?<\/span><\/strong><\/p>\n<p class=\"western\"><span style=\"color: #000000;\">Parameters are variables which receive values from their caller before being used within a function.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p class=\"western\"><strong><span style=\"color: #000000;\">20. Define Type Conversion.<\/span><\/strong><\/p>\n<p class=\"western\"><span style=\"color: #000000;\">Type conversion involves changing the data type of a value from one type to another.<\/span><\/p>\n<h3 style=\"text-align: center;\"><span style=\"text-decoration: underline; color: #000000;\">Viva Questions for Class 11 Computer Science Python<\/span><\/h3>\n<p class=\"western\"><strong><span style=\"color: #000000;\">21. Explain the differences between a while loop and for loop.<\/span><\/strong><\/p>\n<p class=\"western\"><span style=\"color: #000000;\">A while loop iterates a block of code while its condition holds, while for loops are designed to repeat specific numbers of times over a sequence.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p class=\"western\"><strong><span style=\"color: #000000;\">22. What is the purpose of indentation in Python?<\/span><\/strong><\/p>\n<p class=\"western\"><span style=\"color: #000000;\">Indentation serves to define code blocks and aids program structure and readability.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p class=\"western\"><strong><span style=\"color: #000000;\">23. What is a method in programming?<\/span><\/strong><\/p>\n<p class=\"western\"><span style=\"color: #000000;\">A method is defined as any function associated with a particular object or data type that allows us to take actions on that object\/type.<\/span><\/p>\n<h4><\/h4>\n<p class=\"western\"><strong><span style=\"color: #000000;\">24. How Does len() Function Work?<\/span><\/strong><\/p>\n<p class=\"western\"><span style=\"color: #000000;\">len() returns the length (in elements) of a sequence like a string or list.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p class=\"western\"><strong><span style=\"color: #000000;\">25. Provide an explanation of boolean data types.<\/span><\/strong><\/p>\n<p class=\"western\"><span style=\"color: #000000;\">A boolean data type has two possible values &#8211; True or False &#8211; representing binary conditions.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p class=\"western\"><span style=\"color: #000000;\"><strong>26. Explain what the range( ) function does.<\/strong> <\/span><\/p>\n<p class=\"western\"><span style=\"color: #000000;\">The range () function generates a sequence of numbers suitable for iteration loops.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p class=\"western\"><span style=\"color: #000000;\"><strong>27. What is the role of comments in programming?<\/strong> <\/span><\/p>\n<p class=\"western\"><span style=\"color: #000000;\">Comments serve two main functions in programming &#8211; they provide non-executable text that helps programmers understand code better and enhance readability.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p class=\"western\"><strong><span style=\"color: #000000;\">28. What will you do to access elements within a list using indexing?<\/span><\/strong><\/p>\n<p class=\"western\"><span style=\"color: #000000;\">We use square [ ] brackets and an index number to quickly access the elements within the list.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p class=\"western\"><strong><span style=\"color: #000000;\">29. Explain what a &#8220;nested loop&#8221; is.<\/span><\/strong><\/p>\n<p class=\"western\"><span style=\"color: #000000;\">Nested loops can be defined as loops within other loops that result in multiple iterations.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p class=\"western\"><strong><span style=\"color: #000000;\">30. How Does the Continue Statement Work?<\/span><\/strong><\/p>\n<p class=\"western\"><span style=\"color: #000000;\">The Continue statement allows a loop to skip over any remaining iterations and continue with its next iteration immediately.<\/span><\/p>\n<h3 style=\"text-align: center;\"><span style=\"text-decoration: underline; color: #000000;\">Viva Questions for Class 11 Computer Science Python<\/span><\/h3>\n<p class=\"western\"><strong><span style=\"color: #000000;\">31. What is an operator?<\/span><\/strong><\/p>\n<p class=\"western\"><span style=\"color: #000000;\">An operator is defined as any symbol which performs operations on one or more operands to produce results.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p class=\"western\"><strong><span style=\"color: #000000;\">32. Define string in python programming.<\/span><\/strong><\/p>\n<p class=\"western\"><span style=\"color: #000000;\">A string is a sequence of characters typically used to represent text.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p class=\"western\"><strong><span style=\"color: #000000;\">33. How is a dictionary different from a list?<\/span><\/strong><\/p>\n<p class=\"western\"><span style=\"color: #000000;\">Dictionaries store key-value pairs while lists are an ordered collection of items.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p class=\"western\"><strong><span style=\"color: #000000;\">34. What\u00a0 input() function does?<\/span><\/strong><\/p>\n<p class=\"western\"><span style=\"color: #000000;\">This function allows users to submit input directly through consoles.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p class=\"western\"><strong><span style=\"color: #000000;\">35. What is the significance of &#8220;is&#8221; operator?<\/span><\/strong><\/p>\n<p class=\"western\"><span style=\"color: #000000;\">The identity operator &#8220;is&#8221; checks if two variables refer to identical objects in memory.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p class=\"western\"><span style=\"color: #000000;\"><strong>36. What are the purposes of a mapping data type?<\/strong> <\/span><\/p>\n<p class=\"western\"><span style=\"color: #000000;\">Like a dictionary, a mapping data type allows users to store values associated with unique keys.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3 class=\"western\"><span style=\"color: #000000;\">37. Please explain the concept of operator precedence. <\/span><\/h3>\n<p class=\"western\"><span style=\"color: #000000;\">Operator precedence defines the order in which operators are evaluated within an expression.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3 class=\"western\"><span style=\"color: #000000;\">38. What differentiates a tuple and list from each other?<\/span><\/h3>\n<p class=\"western\"><span style=\"color: #000000;\">A tuple is an immutable sequence while lists are mutable sequences.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3 class=\"western\"><span style=\"color: #000000;\">39. Describe the function of a loop control statement (e.g. &#8220;break&#8221; and &#8220;continue&#8221;) within loops. <\/span><\/h3>\n<p class=\"western\"><span style=\"color: #000000;\">They manage their execution flow.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3 class=\"western\"><span style=\"color: #000000;\">40. Explain how the &#8220;range()&#8221; function fits into a &#8220;for&#8221; loop.<\/span><\/h3>\n<p class=\"western\"><span style=\"color: #000000;\">The range() function generates a sequence of numbers which serve as an iterator in a &#8220;for&#8221; loop.<\/span><\/p>\n<h3 style=\"text-align: center;\"><span style=\"text-decoration: underline; color: #000000;\">Viva Questions for Class 11 Computer Science Python<\/span><\/h3>\n<h3 class=\"western\"><span style=\"color: #000000;\">41. What is the purpose of a function return value?<\/span><\/h3>\n<p class=\"western\"><span style=\"color: #000000;\">A function&#8217;s return value represents its final product after successfully performing its task for its caller.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3 class=\"western\"><span style=\"color: #000000;\">42. What is Local Scope in Python Programming? <\/span><\/h3>\n<p class=\"western\"><span style=\"color: #000000;\">Local scope refers to the accessibility of variables within a section of code such as within a function.<\/span><\/p>\n<h3 class=\"western\"><span style=\"color: #000000;\">43. Explain the Importance of Testing and Debugging. <\/span><\/h3>\n<p class=\"western\"><span style=\"color: #000000;\">Testing and debugging are integral processes used to detect and address errors within code in order to ensure its proper functionality.<\/span><\/p>\n<h3 class=\"western\"><span style=\"color: #000000;\">44. What are Python modules? <\/span><\/h3>\n<p class=\"western\"><span style=\"color: #000000;\">Python modules are reusable pieces of code that can be imported into programs to extend their functionality.<\/span><\/p>\n<h3 class=\"western\"><span style=\"color: #000000;\">45. How are logical errors different from syntax errors? <\/span><\/h3>\n<p class=\"western\"><span style=\"color: #000000;\">Logical errors occur due to flawed reasoning that doesn&#8217;t produce expected output while syntax errors violate language rules.<\/span><\/p>\n<h3 class=\"western\"><span style=\"color: #000000;\">46. What is the purpose of &#8220;strip()&#8221; function? <\/span><\/h3>\n<p class=\"western\"><span style=\"color: #000000;\">The &#8220;strip()&#8221; function strips away leading and trailing whitespace characters from a string.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3 class=\"western\"><span style=\"color: #000000;\">47. Describe what a &#8220;break&#8221; statement in a loop means. <\/span><\/h3>\n<p class=\"western\"><span style=\"color: #000000;\">&#8220;break&#8221; statements allow users to exit an infinite loop prematurely even though its condition still holds.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3 class=\"western\"><span style=\"color: #000000;\">48. Please define &#8220;operator overloading.&#8221;<\/span><\/h3>\n<p class=\"western\"><span style=\"color: #000000;\">Operator overloading allows operators to take different actions depending on the data types involved.<\/span><\/p>\n<p class=\"western\"><span style=\"color: #000000;\">These\u00a0<\/span><span style=\"color: #000000;\"><strong>Viva Questions for Class 11 Computer Science <\/strong><\/span><span style=\"color: #000000;\">cover various aspects of programming and computer science, giving you a solid grasp of its fundamentals and principles. Understanding them will ensure your success on this exam!<\/span><\/p>\n<h2 style=\"text-align: center;\"><\/h2>\n","protected":false},"excerpt":{"rendered":"<p>Viva Questions for Class 11 Computer Science In this article students can find the most commonly asked\u00a0 &#8221; Viva Questions for Class 11 Computer Science Python &#8221; in their practical examination. You have to take an overview of these viva questions to clear the basic concepts of python programming. These questions are totally based on [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,20,12],"tags":[],"class_list":["post-4063","post","type-post","status-publish","format-standard","hentry","category-cbse-sample-papers-class-11","category-cbse-computer-science-with-python-class-12","category-viva-questions"],"_links":{"self":[{"href":"https:\/\/cbsepython.in\/wp-json\/wp\/v2\/posts\/4063","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cbsepython.in\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cbsepython.in\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cbsepython.in\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/cbsepython.in\/wp-json\/wp\/v2\/comments?post=4063"}],"version-history":[{"count":3,"href":"https:\/\/cbsepython.in\/wp-json\/wp\/v2\/posts\/4063\/revisions"}],"predecessor-version":[{"id":5472,"href":"https:\/\/cbsepython.in\/wp-json\/wp\/v2\/posts\/4063\/revisions\/5472"}],"wp:attachment":[{"href":"https:\/\/cbsepython.in\/wp-json\/wp\/v2\/media?parent=4063"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cbsepython.in\/wp-json\/wp\/v2\/categories?post=4063"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cbsepython.in\/wp-json\/wp\/v2\/tags?post=4063"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}