In this article students can find the most commonly asked  ” Viva Questions for Class 11 Computer Science Python ” 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 the latest CBSE curriculum. 

Viva Questions for Class 11 Computer Science Python

 

1. What is the purpose of the CPU in a computer system?

The Central Processing Unit (CPU) serves as the “brain” of any computer, responsible for processing instructions, performing calculations and managing data.

2. Please explain RAM (Random Access Memory).

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.

3. Compare system software with application software.

System software serves to manage and control computer hardware while application software specializes in performing specific tasks such as word processing or gaming.

4. What is an algorithm?

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.

5. Describe the function of an operating system.

An operating system provides hardware resource management, provides user interface features and facilitates program execution on computers.

6. What is ASCII and how does it relate to character encoding?

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.

7. How does a compiler differ from an interpreter?

A compiler transforms all source code to machine code before execution, whereas an interpreter executes code line by line.

8. Define Variable in Programming.

A variable is a name-able storage location which stores data that can be changed during program execution.

9. What is the purpose of a loop in programming?

Loops allow a set of instructions to be repeated multiple times depending on a specified condition.

 

10. Explain what string concatenation.

String concatenation involves connecting multiple strings together in order to form one longer one.

Viva Questions for Class 11 Computer Science Python

11. Why use a flowchart when programming?

Flowcharts provide an easy way to visualize and understand algorithms or programs, making them simpler for analysis and comprehension.

12. What are Conditional Statements in Python Programming?

Conditional statements allow programs to make decisions and execute code blocks based on certain conditions.

 

13. What is the purpose of an If/Else statement?

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.

 

14. Describe the Functions of the For Loop.

A for loop can be used to iterate over a sequence a fixed number of times; such as numbers or elements in a list.

 

15. What does “Data Type” in Programming mean?

A data type defines what values can be stored within variables, such as integers, floats or strings.

 

16. Define syntax error.

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.

 

17. What is the purpose of the break statement?

To exit an unplanned loop prematurely even if its condition still holds.

 

18. Define a Function.

A function is a block of code that performs one specific task and can be called multiple times from different parts of a program.

 

19. What is a Parameter in a Function?

Parameters are variables which receive values from their caller before being used within a function.

 

20. Define Type Conversion.

Type conversion involves changing the data type of a value from one type to another.

Viva Questions for Class 11 Computer Science Python

21. Explain the differences between a while loop and for loop.

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.

 

22. What is the purpose of indentation in Python?

Indentation serves to define code blocks and aids program structure and readability.

 

23. What is a method in programming?

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.

24. How Does Len() Function Work?

Len() returns the length (in elements) of a sequence like a string or list.

 

25. Provide an explanation of boolean data types.

A boolean data type has two possible values – True or False – representing binary conditions.

 

26. Explain what the range( ) function does.

The range () function generates a sequence of numbers suitable for iteration loops.

 

27. What is the role of comments in programming?

Comments serve two main functions in programming – they provide non-executable text that helps programmers understand code better and enhance readability.

28. What will you do to access elements within a list using indexing?

We use square [ ] brackets and an index number to quickly access the elements within the list.

 

29. Explain what a “nested loop” is.

Nested loops can be defined as loops within other loops that result in multiple iterations.

 

30. How Does the Continue Statement Work?

The Continue statement allows a loop to skip over any remaining iterations and continue with its next iteration immediately.

Viva Questions for Class 11 Computer Science Python

31. What is an operator?

An operator is defined as any symbol which performs operations on one or more operands to produce results.

 

32. Please define string in python programming.

A string is a sequence of characters typically used to represent text.

 

33. How is a dictionary different from a list?

Dictionaries store key-value pairs while lists are an ordered collection of items.

 

34. What  input() function does?

This function allows users to submit input directly through consoles.

 

35. What is the significance of “is” operator?

The identity operator “is” checks if two variables refer to identical objects in memory.

 

36. What are the purposes of a mapping data type?

Like a dictionary, a mapping data type allows users to store values associated with unique keys.

 

37. Please explain the concept of operator precedence.

Operator precedence defines the order in which operators are evaluated within an expression.

 

38. What differentiates a tuple and list from each other?

A tuple is an immutable sequence while lists are mutable sequences.

 

39. Describe the function of a loop control statement (e.g. “break” and “continue”) within loops.

They manage their execution flow.

 

40. Explain how the “range()” function fits into a “for” loop.

The range() function generates a sequence of numbers which serve as an iterator in a “for” loop.

Viva Questions for Class 11 Computer Science Python

41. What is the purpose of a function return value?

A function’s return value represents its final product after successfully performing its task for its caller.

 

42. What is Local Scope in Python Programming?

Local scope refers to the accessibility of variables within a section of code such as within a function.

43. Explain the Importance of Testing and Debugging.

Testing and debugging are integral processes used to detect and address errors within code in order to ensure its proper functionality.

44. What are Python modules?

Python modules are reusable pieces of code that can be imported into programs to extend their functionality.

45. How are logical errors different from syntax errors?

Logical errors occur due to flawed reasoning that doesn’t produce expected output while syntax errors violate language rules.

46. What is the purpose of “strip()” function?

The “strip()” function strips away leading and trailing whitespace characters from a string.

 

47. Describe what a “break” statement in a loop means.

“break” statements allow users to exit an infinite loop prematurely even though its condition still holds.

 

48. Please define “operator overloading.”

Operator overloading allows operators to take different actions depending on the data types involved.

These Viva Questions for Class 11 Computer Science 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!

Viva Questions for Class 11 Computer Science Python

By cbsepython

A complete solution for the students of class 9 to 12 having subject Information Technology (402), Computer Science (083). Explore our website for all the useful content as Topic wise notes, Solved QNA, MCQs, Projects and Quiz related to the latest syllabus.

Copywrite © 2020-2024, CBSE Python,
All Rights Reserved