iare.ac.in B.Tech Python Programming Previous Question Paper : Institute Of Aeronautical Engineering
Name of the Organisation : Institute Of Aeronautical Engineering
Exam : B.Tech I Semester Examinations
Subject : Python Programming
Semester : 1
Document Type : Previous Question Paper
Website : https://www.iare.ac.in
Python Programming Question Papers
IARE B.Tech Python Programming Previous Question Paper Semester 1 for the year 2021.
Related / Similar Question Paper : ICSE Class XII Legal Studies Question Paper 2022
B.Tech Semester -1 Python Programming Questions
MODULE – I
1. (a) Describe arithmetic operators, assignment operators, comparison operators, logical operators and bitwise operators in Python with examples.
(b) Write a Python program to print the following.
i) The first line contains the biggest of the two numbers.
ii) The second line contains the sum of the two numbers.
iii) The third line contains the product of the two numbers.
MODULE – II
2. (a) Explain the decision making statements and loops in Python.
(b) Read the marks of a student in four subjects. Then calculate the total and aggregate, and display
the grade obtained by the student.
(i) If the student scores an aggregate greater than 75%, then the grade is distinction.
(ii) If aggregate is 60 >= and < 75, then the grade is first division.
(iii) If aggregate is 50 >= and < 60, then the grade is second division.
(iv) If aggregate is 40 >= and < 50, then the grade is third division.
(v) Else the grade is fail
MODULE – III
3. (a) Discuss the relation between tuples and lists, tuples and dictionaries in detail.Explain the func- tions related to tuple and list.
(b) Given the participant’s score sheet for your College Sports Day, you are required to find the runner-up score.
You are given scores. Store them in a list and find the score of the runner-up.
Hint : Given list is [10,3,5,6,10,6]. The maximum score is 10, second maximum is 6. Hence, we print 6 as the runner-up score.
4. (a) Describe the functions related to dictionary with examples.
(b) The autonomous college system will read in a dictionary containing key/value pairs of Rollno:[marks] for a list of students. When the parent visits the college and ask the marks of the student by giving rollno, show the marks and also find the average marks up to 2 decimal places.
Hint: Suppose Roll:No: Marks key:value pairs are 20951a0102:[52,31,45], 20951a0104:[12,22,54], 20951a0104:[32,72,14]
MODULE – IV
5. (a) What is a recursive function? Explain different types of arguments used in user defined functions.
(b) Consider the below series:
1, 2, 1, 3, 2, 5, 3, 7, 5, 11, 8, 13, 13, 17…..
This series is a mixture of 2 series. The odd terms in this series form a Fibonacci series and all the even terms are the prime numbers in ascending order. Write a function to find the Nth term in this series.The value N in a positive integer that should be read from STDIN. The Nth term that is calculated by the program should be written to STDOUT Other than the value of Nth term , no other characters / string or message should be written to STDOUT.
Hint: case- 1 when N:14, the 14th term in the series is 17 So only the value 17 should be printed to STDOUT case – 2 when N:15, the 15th term in the series is 21 So only the value 21 should be printed to STDOUT
Download B.Tech Python Programming Question Paper
Download B.Tech Semester – 1 Python Programming Question Paper Here :
https://www.pdfquestion.in/uploads/pdf2022/iareppsem1.pdf