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

Python Programming BCC402 Important Questions

The document outlines important questions for a Python programming course (BCC402) at AKTU, divided into five units covering topics such as Python features, control flow, complex data types, file handling, and GUI programming. Each unit includes specific programming tasks and explanations of key concepts, such as data types, loops, and libraries like NumPy and Pandas. Additionally, there is a bonus section with frequently asked questions addressing comparisons with other programming languages and object-oriented features.

Uploaded by

dubeybrahma434
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 views2 pages

Python Programming BCC402 Important Questions

The document outlines important questions for a Python programming course (BCC402) at AKTU, divided into five units covering topics such as Python features, control flow, complex data types, file handling, and GUI programming. Each unit includes specific programming tasks and explanations of key concepts, such as data types, loops, and libraries like NumPy and Pandas. Additionally, there is a bonus section with frequently asked questions addressing comparisons with other programming languages and object-oriented features.

Uploaded by

dubeybrahma434
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
You are on page 1/ 2

Important Questions for Python Programming (BCC402) - AKTU

UNIT I: Introduction to Python

1. What are the key features of Python?

2. Explain different data types in Python with examples.

3. Write a program to swap two numbers using a temporary variable.

4. What are Python operators? Explain with examples.

5. How does Python handle type conversion (implicit vs explicit)?

UNIT II: Control Flow, Loops, and Conditional Blocks

1. Write a Python program to check whether a number is even or odd.

2. Write a program to print Fibonacci series up to n terms.

3. Explain the use of range() function with examples.

4. Difference between while loop and for loop with examples.

5. Explain break, continue, and pass with sample programs.

UNIT III: Complex Data Types - Strings, Lists, Tuples, Dictionaries

1. Explain string slicing and common string methods in Python.

2. Difference between list, tuple, and dictionary with examples.

3. Write a program to count vowels in a string or reverse a list.

4. Write a program to store and display student records using dictionary.

5. Explain any 5 built-in dictionary functions with examples.

UNIT IV: File Handling in Python

1. Write a program to read a text file and count number of lines or words.

2. Explain different file opening modes with syntax.

3. Difference between read(), readline(), and readlines().

4. Write a Python program to copy contents of one file to another.

5. What is file pointer? How does it work in Python?

UNIT V: Python Packages and GUI Programming

1. What is NumPy? Explain array creation and slicing.

2. What is Pandas? Explain Series and DataFrame with examples.

3. Write a program using Matplotlib to plot a chart.

4. Explain basic Tkinter components: Label, Button, Entry, etc.


5. Write a Tkinter GUI for a simple calculator.

BONUS - Frequently Asked Questions

1. Differences between Python and C or C++ or Java.

2. Define mutable and immutable data types.

3. Code to check palindrome or factorial using recursion.

4. Describe object-oriented features in Python.

5. Use of __init__() in Python classes.

You might also like