Skip to content

// Dr. A.P.J. Abdul Kalam Technical University, Uttar Pradesh / 2022

AKTU B.Tech IT — Python Programming (KNC302), Semester 3, 2022

Python Programming · KNC302 · B.Tech Information Technology · Semester 3

Work through the questions

21 questions

No verified answers are available for this paper.

  1. Question 1(a)

    Descriptive2 marks

    Communication

    Explain the Programming Cycle for Python in detail.

    No verified answer or solution is available for this question.

  2. Question 1(b)

    Descriptive2 marks

    Communication

    What will be the output of the following Python code? i = 0 while i< 3: print

    No verified answer or solution is available for this question.

  3. Question 1(i)

    Descriptive2 marks

    Communication

    i += 1 else: print(0)

    No verified answer or solution is available for this question.

  4. Question 1(c)

    Descriptive2 marks

    Communication

    What will be the output of the following Python code? def cube(x): return x * x * x x = cube(3) print x

    No verified answer or solution is available for this question.

  5. Question 1(d)

    Descriptive2 marks

    Communication

    How do we define an Interface for an ADT?

    No verified answer or solution is available for this question.

  6. Question 1(e)

    Descriptive2 marks

    Communication

    How do you perform a search in Python?

    No verified answer or solution is available for this question.

  7. Question 2(a)

    Descriptive10 marks

    Communication

    What do you mean by Python IDE? Explain in detail.

    No verified answer or solution is available for this question.

  8. Question 2(b)

    Descriptive10 marks

    Communication

    How can you randomize the items of a list in place in Python?

    No verified answer or solution is available for this question.

  9. Question 2(c)

    Descriptive10 marks

    Communication

    Explain Tuples and Unpacking Sequences in Python Data Structure.

    No verified answer or solution is available for this question.

  10. Question 2(d)

    Descriptive10 marks

    Communication

    What are File input and output operations in Python Programming?

    No verified answer or solution is available for this question.

  11. Question 2(e)

    Descriptive10 marks

    Communication

    Solve the Tower of Hanoi problem for n= 3 disk and show all the steps.

    No verified answer or solution is available for this question.

  12. Question 3(a)

    Descriptive10 marks

    Communication

    Write a program in Python to execute the Selection sort algorithm.

    No verified answer or solution is available for this question.

  13. Question 3(b)

    Descriptive10 marks

    Communication

    Explain why python is considered an interpreted language.

    No verified answer or solution is available for this question.

  14. Question 4(a)

    Descriptive10 marks

    Communication

    Write a Python program to construct the following pattern, using a nested for loop. * * * * * * * * * * * * * * * QP22P2_290 | 22-Mar-2022 13:25:36 | 117.55.242.131 QP22P2_290 | 22-Mar-2022 13:25:36 | 117.55.242.131 0 0 PYTHON PROGRAMMING * * * * * * * * * *

    No verified answer or solution is available for this question.

  15. Question 4(b)

    Descriptive10 marks

    Communication

    Write a program to produce Fibonacci series in Python.

    No verified answer or solution is available for this question.

  16. Question 5(a)

    Descriptive10 marks

    Communication

    Write a Python program to change a given string to a new string where the first and last chars have been exchanged.

    No verified answer or solution is available for this question.

  17. Question 5(b)

    Descriptive10 marks

    Communication

    Write a Python program to add an item in a tuple.

    No verified answer or solution is available for this question.

  18. Question 6(a)

    Descriptive10 marks

    Communication

    How to create and import a module in Python?

    No verified answer or solution is available for this question.

  19. Question 6(b)

    Descriptive10 marks

    Communication

    Explain the algorithm Sieve of Eratosthene used in Python Programming.

    No verified answer or solution is available for this question.

  20. Question 7(a)

    Descriptive10 marks

    Communication

    Write a Recursive function in python BinarySearch(Arr,l,R,X) to search the given element X to be searched from the List Arr having R elements, where l represent slower bound and R represents the upper bound.

    No verified answer or solution is available for this question.

  21. Question 7(b)

    Descriptive10 marks

    Communication

    Explain the terms Merge List and Merge Sort in Python Programming.

    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