Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
9 views

Python Model Lab Question Set

Uploaded by

nanoworld24
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

Python Model Lab Question Set

Uploaded by

nanoworld24
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

1.

Develop a computing solution to process the mark processing system (Record has the following fields: Name,
Reg_no, Mark1, Mark2, Mark3, Mark4, Total, average). Generate student information with total and average marks

2. In a class of 50 numbers of students, 6 students are selected for state cricket academy. Sports faculty of this
school has to report to the state cricket academy about the selected students‟ physical fitness. Here is one of the
physical measures of the selected students‟; Height in cm is given for those 6 selected students
[153,162,148,167,175,151]. By implementing functions, do the following operations.

(i) State academy selector has to check whether the given height is present in the selected
students list or not.
(ii) State academy selector has to order the height of students in an incremental manner.
(iii) State academy selector has to identify the maximum height from the list.
Register Program 1 (45) Program 2 (45) Viva Total
No. (10) (100)
Algorithm Program Output Algorithm Program Output
(5) (30) (10) (5) (30) (10)

1. A man is blessed with a duck that can lay golden eggs. First day it lays one egg, in second day it lays two eggs, in
third day it lays three eggs, and it continues to lay eggs in an incremental manner day by day. Now calculate how
many golden eggs that duck lays till „n‟th day.

2. Tower of Hanoi is a mathematical puzzle where we have three rods and n disks. The objective of the puzzle is to
move the entire stack to another rod, obeying the following simple rules:
Here is a high-level outline of how to move a tower from the starting pole, to the goal pole, using an intermediate
pole:
1. Move a tower of height-1 to an intermediate pole, using the final pole.
2. Move the remaining disk to the final pole.
3. Move the tower of height-1 from the intermediate pole to the final pole using original pole

Register Program 1 (45) Program 2 (45) Viva Total


No. (10) (100)
Algorithm Program Output Algorithm Program Output
(5) (30) (10) (5) (30) (10)

1. Consider the person „X‟ has some amount in his hand and the person „Y‟ has some amount in his hand. If they
wish to exchange the amount among them, how they can exchange the amount by using the third party „Z‟.

2. A musical album company has „n‟ number of musical albums. The PRO of this company wishes to do following
operations based on some scenarios:

(i) Name of the album starts with „s‟ or „S‟.


(ii) Name of the album which contains „jay‟ as substring.
(iii) Check whether the album name presents in the repository or not.
(iv)Count number of vowels and consonants in the given album name.
Register Program 1 (45) Program 2 (45) Viva Total
No. (10) (100)
Algorithm Program Output Algorithm Program Output
(5) (30) (10) (5) (30) (10)
1.A university wishes to create and maintain the details of the students such as Rollno, Regno, Name, Dept, Batch,
Contact_no, Nativity(Indian/NRI) as key value pairs. Do the following operations:

(i) Display the complete student details on giving Rollno as input.


(ii) Display the complete student details whose nativity belongs to NRI.
(iii) Display the complete student details whose department is CSE.
2. A librarian wishes to maintain books details such as ISBN, Book Name, Author Name, Year published, Publisher
Name. He wishes to retrieve the book details in the following scenario:

(i) Retrieve the complete details of the book on giving ISBN.


(ii) Retrieve the details of the book which published after the year 2015.
(iii) Retrieve the details of the book whose author name is „Andrew‟.
(iv) Retrieve the details of the book that name of the book is „Python‟
Register Program 1 (45) Program 2 (45) Viva Total
No. (10) (100)
Algorithm Program Output Algorithm Program Output
(5) (30) (10) (5) (30) (10)

1. A game has to be made from marbles of five colors, yellow, blue, green, red and Violet where five marbles has to
be kept one upon another. Write a python program using recursion, to find how many ways these marbles can be
arranged.

2. A musical album company has „n‟ number of musical albums. The PRO of this company wishes to do following
operations based on some scenarios:

(iv) Name of the album starts with „s‟ or „S‟.


(v) Name of the album which contains „jay‟ as substring.
(vi) Check whether the album name presents in the repository or not.
(iv)Count number of vowels and consonants in the given album name.
Register Program 1 (45) Program 2 (45) Viva Total
No. (10) (100)
Algorithm Program Output Algorithm Program Output
(5) (30) (10) (5) (30) (10)

1. The Greek theater shown at the right has 30 seats in the first row of the center section. Each row behind the first
row gains two additional seats. How many seats are in the 5th row in the center section?

2. Develop a solution to identify the right angle triangle while giving the sides of a triangle. (Recall from the
Pythagoras theorem that in a right triangle, the square of one side equals the sum of the squares of other two sides)

Register Program 1 (45) Program 2 (45) Viva Total


No. (10) (100)
Algorithm Program Output Algorithm Program Output
(5) (30) (10) (5) (30) (10)
1.Provide a software solution to compute the +2 Cutoff mark, given the Mathematics, physics and Chemistry marks.
A college has decided to admit the students with a cut off marks of180. Decide whether the student is eligible to get
an admission in that college or not.

2. In a class of 50 numbers of students, 6 students are selected for state cricket academy. Sports faculty of this school
has to report to the state cricket academy about the selected students‟ physical fitness. Here is one of the physical
measures of the selected students‟; Height in cm is given for those 6 selected students [153,162,148,167,175,151].
By implementing functions, do the following operations.

i) State academy selector has to check whether the given height is present in the selected
students list or not.
ii) State academy selector has to order the height of students in an incremental manner.
iii) State academy selector has to identify the maximum height from the list.

Register Program 1 (45) Program 2 (45) Viva Total


No. (10) (100)
Algorithm Program Output Algorithm Program Output
(5) (30) (10) (5) (30) (10)

1. Four People A,B,C,D are sitting in a Circular arrangement. In how many ways their seating can be arranged
2. A musical album company has „n‟ number of musical albums. The PRO of this company wishes to do
following operations based on some scenarios:
(vii) Name of the album starts with „s‟ or „S‟.
(viii) Name of the album which contains „jay‟ as substring.
(ix) Check whether the album name presents in the repository or not.
(iv)Count number of vowels and consonants in the given album name.
Register Program 1 (45) Program 2 (45) Viva Total
No. (10) (100)
Algorithm Program Output Algorithm Program Output
(5) (30) (10) (5) (30) (10)

1. A pizza in a circular shape with 8 inches and which is placed in a square box whose side length is 10
inches. Find how much of the box is “empty”?
2. The Greek theater shown at the right has 30 seats in the first row of the center section. Each row behind the
first row gains two additional seats. How many seats are in the 5th row in the center section?

Register Program 1 (45) Program 2 (45) Viva Total


No. (10) (100)
Algorithm Program Output Algorithm Program Output
(5) (30) (10) (5) (30) (10)

You might also like