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

UNIT 3_Python programming _QUESTION BANK_2023-24

This document is a question bank for a Python Programming course at ABES Engineering College, Ghaziabad, covering various topics such as string manipulation, data structures, function concepts, and algorithms. It includes a series of questions that require explanations, code implementations, and comparisons between different programming concepts. The questions are categorized by their cognitive levels and intended learning outcomes.
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 views2 pages

UNIT 3_Python programming _QUESTION BANK_2023-24

This document is a question bank for a Python Programming course at ABES Engineering College, Ghaziabad, covering various topics such as string manipulation, data structures, function concepts, and algorithms. It includes a series of questions that require explanations, code implementations, and comparisons between different programming concepts. The questions are categorized by their cognitive levels and intended learning outcomes.
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

ABES ENGINEERING COLLEGE, GHAZIABAD

Unit-3
QUESTION BANK
SUBJECT NAME: PYTHON PROGRAMMING
SUBJECT CODE: BCC-302

Q.No Description CO BL
Explain the concept of string indexing & slicing and provide an
1 CO3 K2
example in Python.
Differentiate between mutable and immutable objects in Python
2 CO3 K2
language with example.
Explain the difference between function arguments and function
3 parameters. Discuss the concept of variable scope within functions in CO3 K2
Python.
Write a Python program to add 'ing' at the end of a given string (length
should be at least 3). If the given string already ends with 'ing', add
4 CO3 K3
'ly' instead. If the string length of the given string is less than 3, leave
it unchanged.
When to Use Python Lists and when to Use Tuples, Dictionaries or
5 CO3 K2
Sets.
6 Explain Tuples and Unpacking Sequences in Python Data Structure. CO3 K2
Describe the difference between append () and extend () methods in
7 Python lists. CO3 K2

Explain the algorithm Sieve of Eratosthenes used in Python


8 CO3 K2
Programming
Explain the concept of list slicing and demonstrate its usage with a
9 CO3 K2
sample list.
10 Discuss the concept of function decorators and their role in Python. CO3 K2
Find all of the numbers from 1-1000 that are divisible by 7 using list
11 CO3 K3
comprehension.
Write a Python program to get a list, sorted in increasing order by the
last element in each tuple from a given list of non-empty tuples.
12 CO3 K3
Sample List: [(2, 5), (1, 2), (4, 4), (2, 3), (2, 1)]
Expected Result: [(2, 1), (1, 2), (2, 3), (4, 4), (2, 5)]
Write a Python script to sort (ascending and descending) a dictionary
13 CO3 K3
by value
Write a Python program to count the number of characters (character
14 CO3 K3
frequency) in a string. Sample String: google.com'.
Write a Python program to compute the square of the first N
15 Fibonacci numbers, using the map function and generate a list of the CO3 K3
numbers.
Implement a function that finds the largest element in a list without
16 CO3 K3
using the max () function.
ABES ENGINEERING COLLEGE, GHAZIABAD

Write a program that merges two dictionaries and handles duplicate


17 CO3 K3
keys intelligently.
Develop a Python function that removes duplicates from a list while
18 CO3 K3
maintaining the original order.
Write a Python program to create a lambda function that adds 15 to a
19 given number passed in as an argument, also create a lambda function CO3 K3
that multiplies argument x with argument y and prints the result.
20 Write a Python function to calculate the factorial of a number (a non- CO3 K3
negative integer). The function accepts the number as an argument.

You might also like