0% found this document useful (0 votes)
3 views5 pages

IGNOU_C_PythonLabVivaQuestionsAnswers

The document provides important viva questions and answers for C and Python programming languages, focusing on key concepts and definitions. It includes topics such as data types, loops, functions, and error handling, along with tips for answering confidently during the viva. The content is structured in two parts, one for C language and the other for Python, with concise explanations for each question.

Uploaded by

Bgp 9211
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views5 pages

IGNOU_C_PythonLabVivaQuestionsAnswers

The document provides important viva questions and answers for C and Python programming languages, focusing on key concepts and definitions. It includes topics such as data types, loops, functions, and error handling, along with tips for answering confidently during the viva. The content is structured in two parts, one for C language and the other for Python, with concise explanations for each question.

Uploaded by

Bgp 9211
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

IGNOU PGDCA – C & Python Lab Viva

Important Viva Questions with Easy-to-Remember


Answers
Tip: Viva me answer short, clear aur confident rakhiye. Agar teacher detail pooche tab
example dijiye.
PART A – C LANGUAGE VIVA
1. C language kya hai?
Answer: C ek general-purpose, procedural programming language hai. Iska use system
software, applications aur programming concepts sikhne ke liye hota hai.

2. C language kisne develop ki thi?


Answer: Dennis Ritchie ne C language ko Bell Labs me develop kiya tha.

3. C program ka basic structure kya hota hai?


Answer: Header files, main() function, declarations, statements aur return statement iska
basic structure hote hain.

4. main() function kya hai?


Answer: main() C program ka entry point hai. Program ki execution normally main() se
start hoti hai.

5. #include kya karta hai?


Answer: #include preprocessor directive hai. Isse required header file program me include
ki jaati hai, jaise #include .

6. printf() aur scanf() ka use kya hai?


Answer: printf() output display karne ke liye aur scanf() user se input lene ke liye use hota
hai.

7. Variable kya hota hai?


Answer: Variable memory ka ek named location hai jisme data store kiya jaata hai aur uski
value program ke dauran change ho sakti hai.

8. C ke common data types kaun se hain?


Answer: int, char, float aur double common basic data types hain.

9. Constant kya hota hai?


Answer: Constant aisi value hai jo program ke execution ke dauran change nahi hoti.

10. Operator kya hota hai?


Answer: Operator ek symbol hai jo operation perform karta hai, jaise +, -, *, /, %, == aur
&&.

11. if-else kya hai?


Answer: if-else decision-making statement hai. Condition true hone par if block aur false
hone par else block execute hota hai.

12. Loop kya hota hai?


Answer: Loop kisi statement ya block ko condition ke according repeatedly execute karta
hai.

13. C me loops kaun se hain?


Answer: for, while aur do-while teen main loops hain.

14. Array kya hota hai?


Answer: Array same data type ke multiple elements ko contiguous memory locations me
store karta hai.

15. String kya hai?


Answer: C me string characters ka sequence hota hai jo null character '\0' se terminate
hota hai.

16. Function kya hota hai?


Answer: Function code ka reusable block hai jo ek specific task perform karta hai.

17. Pointer kya hota hai?


Answer: Pointer ek variable hai jo kisi doosre variable ka memory address store karta hai.

18. Structure kya hota hai?


Answer: Structure user-defined data type hai jisme different data types ke related
members ko ek naam ke under group kiya ja sakta hai.

19. Compiler kya karta hai?


Answer: Compiler source code ko machine/object code me translate karta hai aur errors ko
report karta hai.

20. Syntax error kya hota hai?


Answer: Jab program language ke grammatical rules follow nahi karta, to syntax error hota
hai.
PART B – PYTHON VIVA
1. Python kya hai?
Answer: Python ek high-level, interpreted, general-purpose programming language hai. Iski
syntax simple aur readable hoti hai.

2. Python kisne develop kiya?


Answer: Guido van Rossum ne Python ko develop kiya tha.

3. Python interpreted language kyun kehte hain?


Answer: Python program ko interpreter execute karta hai, isliye Python ko commonly
interpreted language kaha jaata hai.

4. Python me variable kaise banate hain?


Answer: Python me variable ke liye alag se data type declare karna zaroori nahi hota.
Example: x = 10.

5. Python ke common data types kaun se hain?


Answer: int, float, complex, str, list, tuple, set, dict aur bool common data types hain.

6. List kya hoti hai?


Answer: List ordered aur mutable collection hai. Example: [10, 20, 30].

7. Tuple kya hota hai?


Answer: Tuple ordered collection hai jo immutable hota hai. Example: (10, 20, 30).

8. List aur tuple me difference?


Answer: List ko modify kiya ja sakta hai, jabki tuple ko modify nahi kiya ja sakta.

9. Dictionary kya hoti hai?


Answer: Dictionary key-value pairs ka collection hai. Example: {'name':'Ali', 'age':20}.

10. Set kya hota hai?


Answer: Set unordered collection hai jisme duplicate elements normally store nahi hote.

11. if statement kya hai?


Answer: if condition ko check karta hai aur condition true hone par uska block execute hota
hai.

12. for aur while loop kya hain?


Answer: for loop sequence/iterable ke elements par iterate karne ke liye aur while loop
condition true rehne tak repeat karne ke liye use hota hai.

13. break aur continue me difference?


Answer: break loop ko turant terminate karta hai, jabki continue current iteration ko skip
karke next iteration par chala jaata hai.

14. Function Python me kaise define karte hain?


Answer: def keyword ka use karke function define karte hain. Example: def add(a,b): return
a+b.

15. Module kya hota hai?


Answer: Module ek Python file hoti hai jisme functions, classes ya variables ho sakte hain
aur use import karke reuse kar sakte hain.

16. Exception kya hota hai?


Answer: Exception runtime par aane wali abnormal condition/error hai jo program ke
normal flow ko disturb kar sakti hai.

17. try-except ka use kya hai?


Answer: try-except ka use exceptions ko handle karne ke liye hota hai, taaki program
controlled way me error handle kar sake.

18. Python me indentation kyun important hai?


Answer: Python indentation ka use code blocks define karne ke liye karta hai; galat
indentation se error ho sakta hai.

19. Python me comment kaise likhte hain?


Answer: Single-line comment ke liye # use karte hain. Example: # This is a comment.

20. Python me input aur output kaise lete hain?


Answer: input() user se input leta hai aur print() output display karta hai.

QUICK CONFIDENCE TIPS FOR VIVA


• Answer ko 2–3 lines me rakhiye jab tak teacher detail na pooche.

• Definition + ek simple example dena best approach hai.

• Program likhne ko bole to pehle logic batayein, phir code likhein.

• Syntax yaad na aaye to panic na karein; concept clearly explain karein.

• Common practical topics: variables, data types, operators, conditions, loops, arrays/lists,
functions, pointers, files/modules aur error handling revise karein.

You might also like