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

Python Programming Imp Questions College

All imp questions of python

Uploaded by

yj1750324
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)
4 views5 pages

Python Programming Imp Questions College

All imp questions of python

Uploaded by

yj1750324
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/ 5

NAME OF PROGRAMME: BACHELOR OF COMPUTER APPLICATIONS

SEMESTER / YEAR: IV / II
SUBJECT NAME (SUBJECT CODE): PYTHON PROGRAMMING (BCA-NEP-402)

SECTION-A (Very Short Answer Type Questions)


UNIT-I
S.No. Question COURSE
OUTCOMES
a) What are keywords? CO1
b) Explain Boolean data type with example. CO1
c) Explain << and //. CO2
d) How Python is interpreted? CO2
e) How is memory managed in Python? CO3
f) Write different quotation used in python. CO3
g) What do you mean by comments? CO4
h) Explain different data types used in Python. CO4
i) What do you mean by type conversion? CO5
j) What are python modules? CO5
UNIT-II
S.No. Question COURSE
OUTCOMES
a) Program to print the table of a given number. CO1
b) Program to traversing the each character of the string. CO1
c) Is multiple assignments is possible in python? Explain with suitable CO2
example.
d) Write a python program to exchange the values of two numbers without CO2
using a temporary variable.
e) Explain the rules for naming the identifier in Python. CO3
f) Discuss different comment techniques. CO3
g) Define string. CO4
h) Define Arithmetic operator. CO4
i) Define Logical operator. CO5
j) Define Comparison operator. CO5
UNIT-III
S.No. Question COURSE
OUTCOMES
a) What is the difference between list and tuples in Python? CO1
b) Program to calculate the Sum of the elements of list. CO1
c) Program to calculate the 𝑥 𝑦 using lambda function. CO2
d) Program to calculate the Factorial of number using Recursion. CO2
e) Discuss about return statement. CO3
f) Can we return more than one values with return statement? CO3
g) Define Assignment operator. CO4
h) Define Bitwise operator table. CO4
i) List some built in modules in python. CO5
j) What is the use of dir () function? CO5
UNIT-IV
S.No. Question COURSE
OUTCOMES
a) What is purpose of close () method? CO1
b) How we performed reading from file and writing into a file? CO1
c) What is the assertion? CO2
d) What is the use of seek () method? CO2
e) What is the purpose of tell () method? CO3
f) What is meant by conditional If? CO3
g) Write the syntax and usage of for loop. CO4
h) Write the syntax and usage of while loop. CO4
i) What is python break statement? CO5
j) What is python pass statement? CO5
UNIT-V
S.No. Question COURSE
OUTCOMES
a) What is the role of __init_ Constructor? CO1
b) What is a class and object? CO1
c) Explain instance method. CO2
d) What is overloading? CO2
e) What is overriding? CO3
f) Differentiate local and global variable. CO3
g) Is string is mutable or not? CO4
h) What is len function and explain how it is used on strings with an CO4
example.
i) Explain about string slicing with examples. CO5
j) What are the two operators that are used in string functions? CO5
SECTION-B (Short Answer Type Questions)
UNIT-I
S.No. Question COURSE
OUTCOMES
a) What are the key features of Python? CO1
b) Differentiate between argument and parameter. CO1
c) Define scope of a variable. CO2
d) Write a python program to check leap year. CO2
e) Explain different type conversion method? CO3
f) How is memory managed in Python? CO3
g) How we access and update the element of string? CO4
h) Program to find the area of a rectangle using classes. CO4
i) Write a Python Program to find the sum of series: 1 + 1/2 + 1/3. CO5
j) What do you mean by identifier? CO5
UNIT-II
S.No. Question COURSE
OUTCOMES
a) Write a Python Program to check whether a number is even or odd. CO1
b) Write a Python Program to find the sum of digits in a number. CO1
c) Define Function in Python with suitable example. CO2
d) Write a Python Program to check whether a number is positive or CO2
negative.
e) What do you mean by loop? CO3
f) Discuss different types of loops in python. CO3
g) Explain List. CO4
h) Difference between identifiers &keywords with help of examples. CO4
i) Differentiate between “9 & 3" and "9 and 3" with output. CO5
j) Explain briefly constant, variables, expression, keywords and CO5
statements available in python.
UNIT-III
S.No. Question COURSE
OUTCOMES
a) How we access and update the element of string? CO1
b) Define Function in Python with suitable example. CO1
c) How we access, update and delete elements of list. CO2
d) Write a Program to concatenate two dictionaries into one dictionary. CO2
e) Explain the indexing and slicing operation in string with suitable CO3
example.
f) What is meant by module in python? CO3
g) Explain function and module with suitable example. CO4
h) Write short notes on types of operators in python with appropriate CO4
example.
i) Write a program to Exchange the value of two variables. CO5
j) Write a program to find the sum of n natural numbers. CO5
UNIT-IV
S.No. Question COURSE
OUTCOMES
a) What is exception and how we can handle an exception? CO1
b) Write type of exception generated in python program with reason. CO1
c) How we open the file in python? CO2
d) What is exception handling? Explain with an example. CO2
e) What is the purpose of flush () method? Explain with suitable examples. CO3
f) Write a program to print Fibonacci series. CO3
g) Write a program to find factorial of a given number. CO4
h) Write a program to convert Celsius to Fahrenheit. CO4
i) Write a program to find whether a given number is Armstrong number CO5
or not f.
j) Write a program to Circulate the value of n variables. CO5
UNIT-V
S.No. Question COURSE
OUTCOMES
a) Write application of Tkinter in python. CO1
b) What do you mean by inheritance? CO1
c) Program to find the area of a rectangle using classes. CO2
d) Compare class method with static method. CO2
e) Explain the concept of multiple inheritances with suitable example. CO3
f) Explain string comparison with an example. CO3
g) Write a program to check whether entered string is palindrome or not. CO4
h) Explain values and items method used in dictionary with example. CO4
i) What the difference is between modify and copy operations performed CO5
in dictionary?
j) How does del operation work on dictionaries? Give an example. CO5

SECTION-C [Descriptive Answer Type Questions / Case Study (for MBA COURSES
only)]
UNIT-I
S.No. Question COURSE
OUTCOMES
a) What are identifiers? Explain floating point representation with example. CO1
b) What is the difference between intermediate mode and script mode? CO1
c) Write a Program to Check if a Number is an Armstrong Number. CO2
d) Write a program takes a number and computes the prime factors of the CO2
integer.
e) Write a program to calculate the factorial of a no. CO3
f) Write down the different decision making statements. CO3
g) List out the standard data types in python. CO4
h) What are the rules for writing an identifier? CO4
i) What operators does python support? CO5
j) What are logical operators and Bitwise operators? CO5
UNIT-II
S.No. Question COURSE
OUTCOMES
a) Write a Python Program to find the sum of series: 1 + 1/2 + 1/3 + ….. + CO1
1/N.
b) What is decision making statements? CO1
c) Explain break statement. CO2
d) Program to check whether a given number is a palindrome. CO2
e) Draw flowchart of if, if else, if elif statements. CO3
f) Explain continue statement. CO3
g) Explain pass statement. CO4
h) Explain the range () in for loop. CO4
i) Explain nested if with example. CO5
j) What is a function? Mention the type of function and use. CO5
UNIT-III
S.No. Question COURSE
OUTCOMES
a) Program to remove the duplicate items from a list. CO1
b) Explain the indexing and slicing operation in string with suitable CO1
example.
c) Explain the 10 different List operations with suitable example. CO2
d) Define Set and Dictionary with suitable function. CO2
e) Program to count the number of vowels present in a string. CO3
f) Mention the features of lists in python. CO3
g) Define Tuple with a suitable example. CO4
h) What is tuple? What is the difference between list and tuple? CO4
i) Give the features of python dictionaries. CO5
j) What are the basic list operations that can be performed in Python? CO5
UNIT-IV
S.No. Question COURSE
OUTCOMES
a) Explain different file object attribute with example. CO1
b) Given a string input in file, Count all lower case, upper case, digits, and CO1
special symbols.
c) Write a program to copy the content of one file to another file. CO2
d) Write a program that prompts the user to enter a number. If the number CO2
is positive or zero print it. Else raise an exception.
e) Write type of exception generated in python program with reason. CO3
f) Briefly explain file opening modes. CO3
g) What is the use of str.upper () and str.lower () functions in string? CO4
h) Explain how to create a dictionary in python? CO4
i) Explain what is range () function and how it is used in lists? CO5
j) How lists are updated in Python? CO5
UNIT-V
S.No. Question COURSE
OUTCOMES
a) Explain types of method with suitable examples. CO1
b) Define object-oriented language properties with suitable examples. CO1
c) Write a program that uses class to store the name and marks of CO2
students.
d) Give the overview of Class, object and inheritance. CO2
e) Explain the concept of multi-level inheritance with suitable example. CO3
f) Explain different types of inheritance. CO3
g) Write a few methods that are used in Python Lists. CO4
h) What is the output of print tuple [1:3] if tuple = (‘abcd’, 786, 2.23, 'john', CO4
70.2)?
i) What is the output of print tuple + tinytuple if tuple = (‘abcd’, 786, 2.23, CO5
'john', 70.2) and tinytuple = (123, 'john')?
j) What type of conditional structures is present in a programming CO5
language? How many of them are supported in Python? Explain each
with example.

You might also like