Search This Blog

Monday, January 16, 2017

KTU University Question Papers and Answers - Paper: BE 101-05 INTRODUCTION TO COMPUTING AND PROBLEM SOLVING (ICP)


ICP - Jan 2017 (Regular Exam)


Write a program that reads an integer N from the keyboard and then calls a user defined function to compute and displays the sum of N numbers from N to (2*N)if N is nonnegative. If N is negative, then displays the sum of the numbers from (2*N) to N. The starting and ending points are included in the sum.
Write a python program to find the sum of all odd terms in a group of n numbers enterd by the user.
Write a program to check if a string is a palindrome or not, whith out reversing the original string.
Write a program to find the quadrant of a given point(X,Y).
Write a python program to create a dictionary of phone numbers and names of five persons. Display the contents of the dictionary in alphabetical order of names .
Create a class person with attributes Name, age, salary and method display() for showing the details. Create two instances of the class and call the method for each instance.
Write a menu driven program to calculate area of circle, triangle, rectangle and square. Use a seperate function to implement each operation.
Write a python code to find transpose of a matrix using list.
Write a program to find the sum of first n positive integers using a recursive function.
Write a python program that opens a file for input and prints the count of four letter words in it.

ICP - January 2016 (Regular Exam)

Sign in with your google account and try to open with Python Editor v5

Write a python program to display all Armstrong numbers in a given range.
Differentiate between break and continue statements with proper examples.
Create a class Car with attributes Model, year and price and a method cost() for displaying price. Create two instance of the class and call the method for each instance.
Write a python program to count the number of vowels, consonants , words and question marks in a given string.
Write a python program to count the number of zeros and negative terms in a given set of n numbers.
Write a python program to input a list of N numbers. Calculate and display the average of numbers. Also display the cube of each value in the list.
Write a python program to create a dictionary of roll numbers and names of five students. Display the contents of dictionary in alphabetical order of names.
Write a python program to compute the nth Fibonacci number, Use a recursive function for the implementation.
Write a python program to create a file conatiing 10 numbers. Read the contents of file and display the square of each number.
Write a python program to create a text file and to input a line of text to it.
Write a python program to simulate a menu driven calculator with addition, subtraction, multiplication, division and exponentiation operations. Use a separate function to implement each operation.
Write a python program to find the sum of digits of a number using functions (preferably a recursive function).
Write a python program to find the sum of all even terms in a group of n numbers enterd by the user.



ICP - June 2016 (Supplementary Exam)


A book shop details contains the title of book and number of copies of each title. As books are added to shop the number of copies in each should increase and as books are sold the number of copies in each should decrease. Implement this scenario using dictionary datatype in python.
Write a recursive function to find the factorial of a number.
Write a program to generate fibonacci series upto a limit.
Write a python code to read a text file and copy the contents to another file after removing the blank lines.
Write a python code to search an element in a list.
Write a python program to add two matrices using list.
Write a python code to print following pattern.
Write a python code to check whether two strings are equal or not.
Write a python program to reverse a string and print whether its palindrome or not.
Write a function to find the sum of numbers between a lower bound and upper bound.
Write a python program using function to check the types of a triangle(Scalene,Isosceles,Equilateral) by getting the vertices from user.