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

U8 9294 CSIR12 1

This document contains a 10 question exam for an Introduction to Computer Programming course. The exam covers topics like modes of operation of a system, flowcharts, exception handling, string methods, data type conversions, classes, recursion, list access methods, and arithmetic operators. Students are instructed to answer all questions, show code output, and mention the respective question number in their answer script. Questions range from explaining concepts to writing code snippets and programs.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views

U8 9294 CSIR12 1

This document contains a 10 question exam for an Introduction to Computer Programming course. The exam covers topics like modes of operation of a system, flowcharts, exception handling, string methods, data type conversions, classes, recursion, list access methods, and arithmetic operators. Students are instructed to answer all questions, show code output, and mention the respective question number in their answer script. Questions range from explaining concepts to writing code snippets and programs.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

NATIONAL INSTITUTE OF TECHNOLOGY TIRUCHIRAPPALLI

END SEMESTER EXAMINATION - JAN. 2021 SESSION

Department of Computer Science and Engineering (Set 1)


CSIR12 – Introduction to Computer Programming (Theory)
Course/Department: B.Tech./ MECH Batch : 2020-2024
Semester/Section : II / A & B Marks : 30
Date and Time : 6-7-2021 & 11.00am –1.00 pm Faculty Name: Karckey P

Answer ALL Questions


NOTE :
1. Make sure the ‘Declaration and statement of authorship’ is uploaded along with the
answer sheet as cover sheet (First Sheet)
2. TIME MANAGEMENT IS YOUR RESPONSIBILITY

i) For the question that requires code as the answer, those programs should be coded in a
way to accept dynamic input. No static inputs are accepted.
ii) Mention the respective question set number in your answer script.

1) Brief about the modes of operation of operation of a system. (3)

2) Draw a flowchart to solve the quadratic equation ax**2 + bx + c = 0 by getting input for
coefficients from the user. (3)

3) Brief the need for catching exceptions using try and except statements. Also explain in detail
about key error () and keyboard interrupt error () with appropriate example. (3)

4) Write a Python Program to Reverse Each Word in “secret_societies.txt” file. Output of the
program is mandatory. (3)

5) Explain about the various string method used to check whether the characters of a string are
numerical or not. Support with a code snippet. (3)

6) Write a Python program to convert decimal 344 into binary and octal number systems. Output
of the program is mandatory. (3)

7) Write a Python class named Student with two instances employee1, employee2 and assign
given values to the said instances attributes (emp id, emp name, desig, age, salary). Print all
the attributes of employee1, employee2 instances with their values in the given format. (3)

8) Write a Python program to calculate the sum of a list of numbers using recursion function.(3)

9) Brief in detail about the access methods in list with an example. (3)

10) Brief about the arithmetic operators with examples. (3)

You might also like