This document contains an exam paper for a Python programming course. It includes multiple choice and long answer questions testing various Python concepts. The questions are divided into three parts: Part A has 20 multiple choice questions, Part B has 5 long answer questions, and Part C has 1 long answer question. The document provides the learning objectives and cognitive levels tested by each question according to Bloom's taxonomy.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
64 views4 pages
PSPP Ia2 F
This document contains an exam paper for a Python programming course. It includes multiple choice and long answer questions testing various Python concepts. The questions are divided into three parts: Part A has 20 multiple choice questions, Part B has 5 long answer questions, and Part C has 1 long answer question. The document provides the learning objectives and cognitive levels tested by each question according to Bloom's taxonomy.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4
PART - B (5x10 =50)
ANSWER ALL THE QUESTIONS
Q. No Questions BT CO’s 21.a) i) write a python program to find the given number is L1 CO1 Reg. No. Armstrong or not. DEPARTMENT OF SCIENCE AND HUMANITIES (OR) INTERNAL ASSESSMENT EXAM-II (PSPP01) 21.b) i) Write a python Program for SWAPPING (Exchanging) L1 CO1 GE3151 PROBLEM SOLVING AND PYTHON PROGRAMMING of values with and without third variable Year / Sem : I / I (F) Date : Duration : 3 hrs Marks : 100 22.a) i) Write a python Program to find distance between L5 CO2 two point PART - A (20 x 2 =40) 22.a) ii) Write a python Program to circulate n numbers L6 CO2 ANSWER ALL THE QUESTIONS (OR) Q. 22.b) i) Briefly discuss in detail about function prototyping in L2 CO2 No Questions BT CO’s python with suitable example program. 1 What is indexing and types of indexing? L1 CO1 2 List out the operations on strings L5 CO1 23.a) i) Write a python program to find the given year is leap or L2 CO3 3 not. Give the difference between list and tuple L2 CO1 23.a) ii) Write a program for Linear Search. L1 CO3 4 Compose the importance of indentation in python L6 CO1 (OR) 5 Write a python program to print ‘n’ numbers. L5 CO1 23.b) i) Examine a Python program to generate first ‘N’ L4 CO3 6 Give the various data types in Python L3 CO1 Fibonacci numbers. 7 Note: The Fibonacci numbers are 0,1,1,2,3,5,8,….. Give the operator precedence in python. L5 CO1 where each number is the sum of preceding two. 8 Explain the concept of floor division. L2 CO2 23.b) ii) Write a python program to find the sum of n number L6 CO3 9 Give the syntax for variable length arguments. L4 CO2 10 Illustrate the use of * and + operators in string with 24.a) i) Explain the conditional statement with its types L1 CO3 L1 CO2 explain with example Program example. 11 What are Boolean values? L1 CO2 (OR) 24.b) i) Write a python program to search the number in CO3 12 What is alternative condition (“if...else”)? L6 CO2 L5 the list using Binary search 13 Give the syntax for “while” loop with example. L1 CO2 14 Write the syntax and flowchart for chained if. L2 CO2 25.a) i) L CO3 Write a python program to find the given number is 15 Differentiate break and continue. L3 CO3 palindrome or not 16 What is composition? L1 CO3 (OR) 17 Define string module? L4 CO3 25.b) i) Write short notes on following operators L1 CO3 18 write a program to find sum of n numbers L3 CO3 i)Arithmetic Operator ii)Relational Operator 19 iii)Membership Operator Mention a few string functions. L1 CO3 20 Write a python program to print your name? L6 CO3 PART-C (1 X 10=10)
26.a) i) Describe the algorithm of tower of honai problem L4 CO1
(OR) 26.b) i) Write a psuedo code to find the average of student L4 CO1 record ii) Draw the flow chart and algorithm for find the given L2 CO3 year is leap year or not
CO1: Develop algorithmic solutions to simple computational problems.
CO2: Develop and execute simple Python programs. CO3: Write simple Python programs using conditionals and loops for solving problems.
PREPARED BY HOD IQAC PRINCIPAL
20 Say the use of string slices with an example. L2 CO3
PART - B (5x10 =50)
ANSWER ALL THE QUESTIONS Q. No Questions BT CO’s Reg. No. 21.a) i) Describe the algorithm of towers of Hanoi problem. L1 CO1 DEPARTMENT OF SCIENCE AND HUMANITIES Suggest a solution to the tower of Hanoi problem with INTERNAL ASSESSMENT EXAM-II (PSPP02) relevant diagram. GE3151 PROBLEM SOLVING AND PYTHON PROGRAMMING (OR) Year / Sem : I / I (F) Date : 21.b) i) Describe the program to insert an element in a sorted L1 CO1 Duration : 3 hrs Marks : 100 list. PART - A (20 x 2 =40) ii) Draw a flowchart to accept three distinct numbers, L2 ANSWER ALL THE QUESTIONS find the greatest and print the result. Q. No Questions BT CO’s 22.a) i) What is membership and identity operators. CO2 1 Write a python program to check the number is odd or L5 CO1 ii) Write a program to perform addition, subtraction, even. multiplication, integer division, floor division and L1 2 Write a python program to find the average of three modulo division on two integer and float. L5 CO1 numbers? (OR) 3 Explain below operations with the example 22.b) i) Explain in detail about the various operators in python L5 CO2 L2 CO1 (i)Concatenation (ii) Repetition with suitable examples. 4 Write short note on Membership. L2 CO1 22.b) ii) Write a program to circulate the values of n variables L6 CO2 5 Give the various data types in Python L6 CO1 23.a) i) Write a python program to find the given number is L2 CO3 6 Give the operator precedence in python. L3 CO1 prime or not 7 Write the syntax for while with else loop with flowchart. L5 CO1 23.a) ii) Explain the syntax and flowchart of the following loop L2 CO3 8 Say about break and continue. L1 CO2 statements i)for loop ii) while loop (OR) 9 What is fruitful function L1 CO2 23.b) i) Write a program to find the factorial of given number CO3 10 What is parameter and list down its type? L1 CO2 without recursion and with recursion. L3 11 How can list act as array? L4 CO2 23.b) ii) Write a program to find the greatest number among L6 CO3 12 How can you use” for loop” in sequence. L5 CO2 three 13 Write a program to check the given year is leap or not. L1 CO2 24.a) i) Write a python program to find the given number is L2 CO3 14 write a program to check the number positive or negative L3 CO2 Armstrong or not. 15 What is slicing? Give an example. L4 CO3 24.a) ii) Write a python program to find GCD for the given L4 CO3 16 Give the syntax for “if..elif..else” with flowchart? L1 CO3 numbers? 17 (OR) What is recursion? L4 CO3 24.b) i) write a python program to print Fibonacci series CO3 18 Say the global and local scope. L5 CO3 L5 19 What is the purpose of pass statement? L1 CO3 25.a) i) Write short notes on following operators i) L5 CO3 Comparison Operator ii) Assignment Operator (OR) 25.b) i) Write a python program to search the number in L4 CO3 the list using Binary search
PART-C (1 X 10=10)
26.a) i) Draw the flow chart and algorithm to guess an L4 CO1
integer (OR) 26.b) i) Draw the flow chart and algorithm for find the given L2 CO1 number is palindrome or not