forked from harshmittal1750/one_page_html
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathQuestionPaper.html
140 lines (110 loc) · 13.4 KB
/
QuestionPaper.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<html>
<head>
<title>Experiment 04</title>
<header><B>Paper ID : 16074</B></header> <header align="right"><B>PRINTED PAGES : 2</B></header>
<br>
<header align="right">Roll No..........................</header>
<br>
<header align="center"><font size="5"><B>END SEMESTER EXAMINATION,2018-19</B></header></font>
<header align="center"><font size="3"><B>B.TECH/B.Sc.(Hons.) B.Tech. M.Tech./ B.Tech. MBA</B></font></header>
<header align="center"><font size="3"><B>(TERM / SEM.02)</B></font></header>
<header align="center"><font size="3"><B>CSE : 114 : APPLICATION BASED PROGRAMMING IN PYTHON</B></font></header>
<br>
<header><B><font size="2">Time : 3 Hrs.                                                                                                                                                                                                                                                                                                                                                            Maximum marks : 100 </B></font></header>
<hr size="2">
<header><B> Note :</B>   1. Attempt <B>All</B> Sections </header>
<header>              2. Marks are indicated against each section.
<body>
<header><B><font size="5"><center>SECTION - A</B></center></header></font>
<br>
<B>Q.1</B>       Attempt <B>ANY FIVE</B> questions of the following:                                                                                                                                                                                                                                                                                                                                 <B>(5x4=20)</B>
<ol type=i>
<blockquote>
<li>    Write a python script to generate a list at runtime.</li>
<br>
<li>    Why we use function? Also explain how we declare function in python</li>
<br>
<li>    List and explain any four methods available in Random module.</li>
<br>
<li>    Design afunction using polymorphism concept in Python to calculate area of an object.
<br>    The object may be a circle, rectangle or triangle.</li>
<br>
<li>    Explain the use of pass statement in loops.</li>
<br>
<li>    Compare the linear search and binary search.</li>
<br>
<li>    How to create your own exception in python.</li>
</ol>
<br>
<header><B><center><font size="5">SECTION - B</center></B></header></font>
<br>
<B>Q.2</B>       Attempt <B>ANY FIVE</B> questions of the following:                                                                                                                                                                                                                                                                                                                                 <B>(5x4=20)</B>
<ol type=i>
<blockquote>
<li>    Write a program that has a class numbers with values stopred in a list. Write a class
<br>    method to find the largest value.</li>
<br>
<li>    Design and develop a program to read a year as an input and find whether it is leap year
<br>    or not. Also consider end of the centuries.</li>
<br>
<li>    What are local and global variables. Explain </li>
<br>
<li>    Write a program to find sum of n numbers stored in list.</li>
<br>
<li>    Write a Python script to check if a given key already exists in a dictionary.</li>
<br>
<li>    Explain any four library functions used in connection with tuples.</li>
<br>
<li>    Design aPython program using if-else statements to print the real or imaginary roots of a quadratic equation.</li>
<br>
<li>    What is the use of raise statement? Mention its syntax.</li>
</ol>
<br>
<header><B><center><font size="5">SECTION - C</center></B></header></font>
<br>
<B>Q.3</B>       Attempt <B>ANY TWO</B> of the following:                                                                                                                                                                                                                                                                                                                                 <B>(5x4=20)</B>
<ol type=i>
<blockquote>
<li>    Write a Python program to create a tuple with data types.</li>
<br>
<li>    Using random variable module, generate four pairs of points in XY-plane. Find the length of
<br>    two straight lines between two pairs of points. Check whether they are intersecting each
<br>    other or not. If they are intersecting, findthe point of intersection. Write a python
<br>    program to implement this.</li>
<br>
<li>    Differentiate between continue and break statements in Python with the help of
<br>    programming examples. With help of these statements, write Python programs to
<br>    (a)Print numbers from 1 to 100 which are not divisible by 5 (b)Print number from 1
<br>    to 100 which are not divisible by 7.</li>
<br>
<li>    Differntiate between Overloading and Overriding by giving suitable examples of each.</li>
</ol>
<br>
<header><B><center><font size="5">SECTION - D</center></B></header></font>
<br>
<B>Q.4</B>       Attempt <B>ANY FOUR</B> of the following:                                                                                                                                                                                                                                                                                                                                <B>(5x4=20)</B>
<ol type=i>
<blockquote>
<li>    Write a Python program to sort a list of elements using the bubble sort algorithm.</li>
<br>
<li>    If ATM contains Indian currency notes of 100, 500, and 2000. To withdraw cash from
<br>    ATM, the user has to enter number of notes he/she wants of each currency i.e. of 100,
<br>    500 and 2000. So write a program calculate total amount withdrawn by person from
<br>    ATM in terms of rupees.</li>
<br>
<li>    Write a progra to handle divide by zero error, value error, type error exception.</li>
<br>
<li>    A four digit integer is enetered through keyboard. Write a function to calculate the sum
<br>    of the four digit number without recursion and using recursion</li>
<br>
<li>    Design progra using OOP's concept to print average marks obtained by a student out
<br>    of five different subjects.</li>
<br>
<li>    Write a program to define function dec_binary(num) to convert the existing decimal
<br>    number into its equivalent binary number.</li>
</ol>
<hr size="2">
<header><B><font size="3"><center>ALL THE BEST!</center></B></font></header>
</body>
</head>
</html>