0% found this document useful (0 votes)
16 views2 pages

PPS Insem April - May 2022

The document contains a past exam paper for Programming and Problem Solving from SINHGAD College of Engineering. It has 4 questions, each with 3 parts - a multi-part programming question, a multiple choice question section, and an additional short question. The questions cover topics like flowcharts, problem solving techniques, Python data types and operations, lists, tuples, loops, and comparing different loop types.

Uploaded by

Bhavesh Asapure
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views2 pages

PPS Insem April - May 2022

The document contains a past exam paper for Programming and Problem Solving from SINHGAD College of Engineering. It has 4 questions, each with 3 parts - a multi-part programming question, a multiple choice question section, and an additional short question. The questions cover topics like flowcharts, problem solving techniques, Python data types and operations, lists, tuples, loops, and comparing different loop types.

Uploaded by

Bhavesh Asapure
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

SINHGAD COLLEGE OF ENGINEERING, PUNE.

(Approved by AICTE, Recognized by Govt. of Maharashtra and Affiliated to Savitribai Phule Pune University)
44/1, Vadgaon (Bk), Off Sinhgad Road, Pune – 411041

First Year Engineering Department


In-Semester Examination
------------------------------------------------------------------------------------------------------------------
Programming and Problem Solving (110005) (2019 pattern)
2021-22 Semester-II
Time: 1 Hour Date: 26/05/2022 Max. Marks: 30
-------------------------------------------------------------------------------------------------------------------------------------
Instructions:
(1) Solve Q. No. 1 or 2, Q. No. 3 or 4
(2) Neat diagrams must be drawn wherever necessary.
(3) Use of electronic pocket calculator is allowed.
(4) Assume suitable data, if necessary.

Q.1 a) What is Flow chart? Explain different symbols used in Flowchart. [6]
b) Select appropriate answer and write along with option and respective answer for the [5]
following Multiple Choice Questions.
1) Which one of the following is the correct extension of the Python file?
a) a) .python b) .py c) .p d) None of these
2) What do we use to define a block of code in Python language?
a) Brackets b) Key c) Indentation d) None of these
3) Top down design strategy is also known as:
a) stepwise refinement b) output module c) input module d) Indentation
4) Which of the following declarations is incorrect?
a) x = 3 b) X1=2 c) xyz = 5 d ) 1P=6
5) Who developed the Python language?
a) Guido van Rossum b) Niene Stom c) Zim Den d) Wick van Rossum
c) Explain Arithmetic Operators used in python [4]
OR
Q.2 a) What is Problem? Explain Six steps of solving the Problem. [6]
b) Select Appropriate answer and write along with option and respective answer for the
following Multiple Choice Questions. [5]
1) Boolean literal has two values
a) left and right b) up and down c) true and false d) none of these
2) The solution that cannot be reached through direct set of steps are called as:
a) indirect solution b) direct solution c) heuristic solution d) algorithmic
3) In which year was the Python 3.0 version developed?
a) 2000 b) 2008 c) 2010 d) 2005
4) list is collection of
a) Numbers b) Characters c) Floating Values d) All of Above
5) We use hash (#) symbol to indicate:
a) b) Indentation b) Comment c) Loop start d) End of program
c) List Data types used in Python. Give one example of each. [4]
Q.3 a) List functions to add elements in list with one example of each. [6]
b) Select Appropriate answer and write along with option and respective answer for the
following Multiple Choice Questions. [5]

1) Which of the following is not used as loop in Python?


a) for loop b) while loop c) do-while loop d) none of these
2) Which of the following is consider as a infinite loop:
a) while(infinte): b) while(1): c) for(1): d) None of these
3) what is use as placeholder in code:
a) break b) continue c) pass d) exit
4) What will be the output of the following code
a=[1,2,3,4,5]
print(a[3:0:-1])
a) Syntax error b) [4, 3, 2] c) [4, 3] d) [4, 3, 2, 1]
5) What will be the output of the following code snippet?
init_tuple = ('Python') * 3
print(type(init_tuple))
a) <class ‘tuple’> b) <class ‘str’> c) <class ‘list’> d) <class‘number’>
c) Explain syntax of for loop to display numbers from 4 to 10. [4]
OR
Q.4 a) Explain data type Tuple with example and compare it with list. [6]
b) Select Appropriate answer and write along with option and respective answer for the
following Multiple Choice Questions. [5]

1) Which statement will check if a, is equal to b?


a) if a = b: b) if a == b: c) if a << b: d) none of these
2) For i in range(-3), how many times this loop will run?
a) 3 b) 1 c) Infinite d)Error
3) What we put at the last of the loop?
a) semicolon b) colon c) comma d) None of the above
4) What will be the output of the following code
a= [1,2,3,4,5,6,7,8,9]
print(a[::2])
a) [1,2] b) [8,9] c) [1,3,5,7,9] d) [1,2,3]
5) What will be the output of the following code
init_tuple_a = '1', '2'
init_tuple_b = ('3', '4')
print (init_tuple_a + init_tuple_b)
a) a) (1, 2, 3, 4) b) (‘1’, ‘2’, ‘3’,‘4’) c) [‘1’, ‘2’, ‘3’,‘4’] d) (1234)
c) Compare Condition controlled loop and Counter controlled Loop. [4]

------------End-------------

You might also like