0% found this document useful (0 votes)
32 views

Important Questions for 2nd Sessional.

The document lists important questions related to Python programming, covering topics such as complex data types, user-defined functions, file handling, and GUI development with Tkinter. It also includes questions about data manipulation using Pandas and NumPy, as well as basic programming concepts like functions and data frames. Overall, it serves as a comprehensive guide for understanding various aspects of Python.

Uploaded by

ĐÆŘK GAMER
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)
32 views

Important Questions for 2nd Sessional.

The document lists important questions related to Python programming, covering topics such as complex data types, user-defined functions, file handling, and GUI development with Tkinter. It also includes questions about data manipulation using Pandas and NumPy, as well as basic programming concepts like functions and data frames. Overall, it serves as a comprehensive guide for understanding various aspects of Python.

Uploaded by

ĐÆŘK GAMER
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

1. What are complex data types in Python?


2. Why do we require a complex data type in Python, and what is the use of those
data types?
3. Write a user-defined function to generate odd numbers between a and b (including b).
4. List one similarity and one difference between List and Dictionary data type.
5. Explain mutable sequences in Python.
6. How to convert a List into a String?
7. Explain any four modes of opening the file.
8. How are renaming and deleting performed on a file? Give the syntax for each.
9. What are the basic methods performed on directories?
10. What are user-defined exceptions? Give one example.
11. Define ADT interface.
12. What are the various file positions methods?
13. Explain why Python is considered an interpreted language.
14. What is Python Matplotlib?
15. Differentiate Between Pandas and NumPy.
16. Is Pandas as fast as NumPy?
17. What is Tkinter and Widgets?
18. How can you initialize a 5*5 numpy array with only zeroes?

19. Print the following pattern:


A
BC
DEF
GHIJ
KLMNO
PQRSTU

20. Print the following pattern


#
##
###
####
#####

21. How can you get a random number in python?


22. How to Create a GUI in Python using Tkinter.
23. How to create a new column in pandas by using values from other columns?
24. Write a Python program to add an item in a tuple.
25. Write a Python program to change a given string to a new string where the first and
last chars have been exchanged.
26. Solve the Tower of Hanoi problem for n= 3 disk and show all the steps.
27. Discuss sorting and merging. Explain different types of sorting with example. Write a Python
program for Sieve of Eratosthenes.
28. Explain the terms Merge List and Merge Sort in Python Programming.
29. Discuss file I/O in Python. How to perform open, read, write, and close into a file? Write a
Python program to read a file line-by-line store it into a variable.
30. What are functions in Python?
31. What are data frames?
32. How can you concatenate two tuples?
33. What is the difference between lists and tuples in Python?
34. What are Keywords in Python?
35. What are global, protected, and private attributes in Python?
36. List the common built-in data types in Python?
37. What is PYTHON PATH?
38. What is namespace in Python?
39. What type of language is Python?
40. What do you mean by Python literals?
41. What are the advantages of Python?
42. Design the user interface: text, colour, images, moving images and sound.
43. Why is Tkinter in Python too lengthy to write? What are the alternatives?
44. Explain GUI With Tkinter in Python.
45. To create First Python GUI Application With Tkinter.
46. Write a python program to find the longest words.
47. Write a Python program to copy the contents of a file to another file.
48. Write a Python program to extract characters from various text files and puts them into a list.
49. Write a Python program to create a file where all letters of English alphabet are listed by
specified number of letters on each line.
50. Can you create a series from the dictionary object in pandas?

You might also like