Skip to content

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

Work through the questions

25 questions

No verified answers are available for this paper.

  1. Question 1(a)

    Descriptive2 marks

    Communication

    Define the programming cycle for Python.

    No verified answer or solution is available for this question.

  2. Question 1(b)

    Descriptive2 marks

    Communication

    Describe the use of class __init__() method.

    No verified answer or solution is available for this question.

  3. Question 1(c)

    Descriptive2 marks

    Communication

    Explain features of any two Python IDEs.

    No verified answer or solution is available for this question.

  4. Question 1(d)

    Descriptive2 marks

    Communication

    Discuss the purpose of the break and continue statement in loops.

    No verified answer or solution is available for this question.

  5. Question 1(e)

    Descriptive2 marks

    Communication

    Explain mutable sequences in Python.

    No verified answer or solution is available for this question.

  6. Question 1(f)

    Descriptive2 marks

    Communication

    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.

  7. Question 1(g)

    Descriptive2 marks

    Communication

    Discuss the special methods __le__ and __ne__.

    No verified answer or solution is available for this question.

  8. Question 1(h)

    Descriptive2 marks

    Communication

    Discuss various file opening modes of python.

    No verified answer or solution is available for this question.

  9. Question 1(i)

    Descriptive2 marks

    Communication

    Compare assert, try-except and raise statements.

    No verified answer or solution is available for this question.

  10. Question 1(j)

    Descriptive2 marks

    Communication

    Write python function to perform linear search.

    No verified answer or solution is available for this question.

  11. Question 2(a)

    Descriptive10 marks

    Communication

    Write Python code snippet to display n terms of Fibonacci series using recursion.

    No verified answer or solution is available for this question.

  12. Question 2(b)

    Descriptive10 marks

    Communication

    Write and explain an algorithm through python code to generate prime numbers.

    No verified answer or solution is available for this question.

  13. Question 2(c)

    Descriptive10 marks

    Communication

    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.

  14. Question 2(d)

    Descriptive10 marks

    Communication

    Explain the python implementation of stack ADT.

    No verified answer or solution is available for this question.

  15. Question 2(e)

    Descriptive10 marks

    Communication

    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.

  16. Question 3(a)

    Descriptive10 marks

    Communication

    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.

  17. Question 3(b)

    Descriptive10 marks

    Communication

    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.

  18. Question 4(a)

    Descriptive10 marks

    Communication

    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.

  19. Question 4(b)

    Descriptive10 marks

    Communication

    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.

  20. Question 5(a)

    Descriptive10 marks

    Communication

    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.

  21. Question 5(b)

    Descriptive10 marks

    Communication

    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.

  22. Question 6(a)

    Descriptive10 marks

    Communication

    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.

  23. Question 6(b)

    Descriptive10 marks

    Communication

    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.

  24. Question 7(a)

    Descriptive10 marks

    Communication

    Explain the Tower of Hanoi problem and its recursive solution in Python.

    No verified answer or solution is available for this question.

  25. Question 7(b)

    Descriptive10 marks

    Communication

    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.

Keep preparing

Revisit another year or explore a different paper in the library.

More from this exam