0% found this document useful (0 votes)
26 views

Python model q

Uploaded by

odingfx98
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)
26 views

Python model q

Uploaded by

odingfx98
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

Sree Narayana Gurukulam College of

Engineering
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
Ist Semester - B.Tech
Course : UCEST105 - ALGORITHMIC THINKING WITH
PYTHON
CO BL MARK
Smart Question Bank

PART A
1. Describe the variable naming conventions in Python CO1 1 (3)

2. Write a Python program to interchange the values of two variables? CO1 3 (3)

3. Write a pseudo code to find the largest of three numbers CO2 3 (3)

4. Describe two constructs commonly used for selection in pseudocode CO2 1 (3)

5. Write a Python program that takes user name as input and prints a greeting message. CO1 3 (3)

6. Write a python program to add and subtract two input numbers. CO1 3 (3)

7. Define algorithm. What are the properties of an algorithm? CO2 1 (3)

8. Differentiate if else if else structure with case structure. CO2 1 (3)

PART B
1. a) Write a python program that asks the user to input the height and radius of a Cylinder.
CO1 3 (4)
And calculate the Volume of the Cylinder
b) Summarize the features of Python? CO1 2 (5)

2. a) Walk through the six problem-solving steps to find the Area of a Rectangle. CO1 3 (4)

b) Explain the different operators used in Python with example. CO1 2 (5)

3. a) Describe the 'for' statement used for repetition in pseudo code CO2 1 (4)

b) Explain the ‘while’ and ‘repeat’ constructs of repetition using in pseudo code with
CO2 2 (5)
example
4. a) Explain why pseudo code is used to represent algorithms CO2 2 (4)

b) Explain the different symbols used in flowchart using examples. CO2 2 (5)

5. a) Determine the types of following variables?


a = 55
b = ‘3 + 4j’
c = “1DBATU”
d = 5 + 2j CO1 3 (4)
e = 3.78
f = b+c
g= 'name'
h= -98
b) Differentiate variables, literals and keywords in Python. Also give example for each of
CO1 2 (5)
them.
6. a) Walk through the six problem-solving steps to find the Area of a Circle CO1 3 (4)

b) Explain the numeric and string data types with an example CO1 2 (5)

1 of 2
7. a) Explain any two constructs of pseudocode with an example CO2 1 (4)

b) Develop the Pseudocode and draw a flowchart to find the sum of all odd numbers till
CO2 2 (5)
100.
8. a) Explain the flowchart. Also list out the advantages of flowchart. CO2 1 (4)

b) Write a Pseudocode and Draw a flowchart to find whether a number is even or odd. CO2 2 (5)

2 of 2

You might also like