// Dr. A.P.J. Abdul Kalam Technical University, Uttar Pradesh / 2023
AKTU B.Tech IT — Python Programming (KNC402), Semester 4, 2023
Python Programming · KNC402 · B.Tech Information Technology · Semester 4
Questions
25
Work through the questions
25 questions
No verified answers are available for this paper.
Define the programming cycle for Python.
No verified answer or solution is available for this question.
Describe the use of class __init__() method.
No verified answer or solution is available for this question.
Explain features of any two Python IDEs.
No verified answer or solution is available for this question.
Discuss the purpose of the break and continue statement in loops.
No verified answer or solution is available for this question.
Explain mutable sequences in Python.
No verified answer or solution is available for this question.
Explain the output of following function. def printalpha(abc_list, num_list): for char in abc_list: for num in num_list: print(char, num) return printalpha(['a','b','c'], [1,2,3])
No verified answer or solution is available for this question.
Discuss the special methods __le__ and __ne__.
No verified answer or solution is available for this question.
Discuss various file opening modes of python.
No verified answer or solution is available for this question.
Compare assert, try-except and raise statements.
No verified answer or solution is available for this question.
Write python function to perform linear search.
No verified answer or solution is available for this question.
Write Python code snippet to display n terms of Fibonacci series using recursion.
No verified answer or solution is available for this question.
Write and explain an algorithm through python code to generate prime numbers.
No verified answer or solution is available for this question.
Compare list and tuple data structure with suitable examples. Explain the concept of list comprehension.
No verified answer or solution is available for this question.
Explain the python implementation of stack ADT.
No verified answer or solution is available for this question.
Describe python program to implement selection sort. Simulate your code on the following data: 2,52,1,5,2,54,62,64.
No verified answer or solution is available for this question.
Discuss various categories of operators in python. Find and explain stepwise solution of following expressions if a=3, b=5, c=10. (i) a &b<<2//5**2+c^b (ii) b>>a**2<<2 >> b**2^c**3
No verified answer or solution is available for this question.
Discuss why python is interpreted language. Explain history and features of python while comparing python version 2 and 3.
No verified answer or solution is available for this question.
Write a python program to count the vowels present in given input string. Explain the output of program through example.
No verified answer or solution is available for this question.
Write a program that accepts sequence of lines as input and prints the lines after making all characters in the sentence capitalized. For example, if input is "Hello world" and "Practice makes perfect", the output is "HELLO WORLD" and "PRACTICE MAKES PERFECT".
No verified answer or solution is available for this question.
Discuss list data structure of python. Explain various inbuilt methods of list with suitable example of each.
No verified answer or solution is available for this question.
Compare list and dictionary data structure. Explain various dictionary methods with suitable examples of each.
No verified answer or solution is available for this question.
Discuss the concept of iterators in python. Explain, how we can create text file in python? Describe python program to write the number of letters and digits in given input string into a File object.
No verified answer or solution is available for this question.
Illustrate through examples, how we can implement different type of inheritance in python? Explain the static, instance and class method through suitable example.
No verified answer or solution is available for this question.
Explain the Tower of Hanoi problem and its recursive solution in Python.
No verified answer or solution is available for this question.
Write python program to implement merge sort algorithm. Discuss, how we can compare the time complexity of two algorithms?
No verified answer or solution is available for this question.