Skip to content

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

AKTU B.Tech IT — Python Programming (KNC402), Semester 4, 2022

Python Programming · KNC402 · B.Tech Information Technology · Semester 4

Work through the questions

20 questions

No verified answers are available for this paper.

  1. Question 1(a)

    Descriptive2 marks

    Communication

    Discuss why Python is called as dynamic and strongly typed language?

    No verified answer or solution is available for this question.

  2. Question 1(b)

    Descriptive2 marks

    Communication

    How pass statement is different from a comment?

    No verified answer or solution is available for this question.

  3. Question 1(c)

    Descriptive2 marks

    Communication

    Write a for loop that prints numbers from 0 to 57, using range function.

    No verified answer or solution is available for this question.

  4. Question 1(d)

    Descriptive2 marks

    Communication

    What is the difference between Python Arrays and Lists?

    No verified answer or solution is available for this question.

  5. Question 2(a)

    Descriptive10 marks

    Communication

    Write a python function named ComputeAverage to find average of a list of numbers. It should handle the exception if the list is empty and return 0 in that case.

    No verified answer or solution is available for this question.

  6. Question 2(b)

    Descriptive10 marks

    Communication

    Implement the binary search technique.

    No verified answer or solution is available for this question.

  7. Question 2(c)

    Descriptive10 marks

    Communication

    Explain the use of break and continue with a suitable example.

    No verified answer or solution is available for this question.

  8. Question 3(a)

    Descriptive10 marks

    Communication

    What do you mean by operator precedence and associativity. Explain.

    No verified answer or solution is available for this question.

  9. Question 3(b)

    Descriptive10 marks

    Communication

    Write short notes on

    No verified answer or solution is available for this question.

  10. Question 3(i)

    Descriptive10 marks

    Communication

    The programming cycle for python ii. Type conversion in python

    No verified answer or solution is available for this question.

  11. Question 3(c)

    Descriptive10 marks

    Communication

    Write Python program to swap two numbers without using Intermediate/Temporary variables. Prompt the user for input.

    No verified answer or solution is available for this question.

  12. Question 4(a)

    Descriptive10 marks

    Communication

    Write a program to check an input number is prime or not.

    No verified answer or solution is available for this question.

  13. Question 4(b)

    Descriptive10 marks

    Communication

    Write a program that accepts a sentence and calculate the number of digits, uppercase and lowercase letters.

    No verified answer or solution is available for this question.

  14. Question 4(c)

    Descriptive10 marks

    Communication

    Write a program to check an input year is leap year or not.

    No verified answer or solution is available for this question.

  15. Question 5(a)

    Descriptive10 marks

    Communication

    There is a file named Input.Txt. Enter some positive numbers into the file named Input.Txt. Read the contents of the file and if it is an odd number write it to ODD.TXT and if the number is even, write it to EVEN.TXT

    No verified answer or solution is available for this question.

  16. Question 5(b)

    Descriptive10 marks

    Communication

    Discuss Exceptions and Assertions in Python. Explain with a suitable example. Explain any two built-in exceptions.

    No verified answer or solution is available for this question.

  17. Question 5(c)

    Descriptive10 marks

    Communication

    What is the significance of module in Python? What are the methods of importing a module? Explain with suitable example

    No verified answer or solution is available for this question.

  18. Question 6(a)

    Descriptive10 marks

    Communication

    What do you mean by recursion? Write a recursive function to compute the factorial of an input number N.

    No verified answer or solution is available for this question.

  19. Question 6(b)

    Descriptive10 marks

    Communication

    Implement selection sort using Python

    No verified answer or solution is available for this question.

  20. Question 6(c)

    Descriptive10 marks

    Communication

    What are different types of inheritance supported by Python? Explain.

    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