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

233076 17YCM702_The Joy of Computing Using Python

This document outlines the examination structure for the course 'The Joy of Computing Using Python' for May 2023, including instructions, question types, and marking schemes. It consists of three parts: Part A with short answer questions, Part B with detailed questions or programming tasks, and a compulsory Part C focusing on logical errors and runtime errors. The exam covers various Python concepts such as data types, loops, functions, and error handling.

Uploaded by

emmettsteveson2
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

233076 17YCM702_The Joy of Computing Using Python

This document outlines the examination structure for the course 'The Joy of Computing Using Python' for May 2023, including instructions, question types, and marking schemes. It consists of three parts: Part A with short answer questions, Part B with detailed questions or programming tasks, and a compulsory Part C focusing on logical errors and runtime errors. The exam covers various Python concepts such as data types, loops, functions, and error handling.

Uploaded by

emmettsteveson2
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Sr.

No: 233076
PRN

DEGREE EXAMINATION, MAY 2023


(Regulations 2017)

17YCM702 – THE JOY OF COMPUTING USING PYTHON

Time: Three Hours Maximum Marks: 100

Instructions to the candidate:


 Figures to the right indicate full marks.
 Usage of non-programmable calculator is permitted.
 Draw neat sketches and diagram wherever is necessary.
 Part C is compulsory.
___________________________________________________________

PART A - (10 x 2 = 20 Marks)


Answer All Questions

1. Give the two features of python. (2) K1 CO1

2. List two the standard data types in python. (2) K1 CO1

3. Write the syntax and usage of while loop. (2) K1 CO2

4. Define is Boolean value. (2) K1 CO2

5. Define input syntax in python. (2) K1 CO3

6. Write the syntax of “with” Statement. (2) K1 CO3

7. Define use of indentation in python. (2) K1 CO4

8. Write length Function with example. (2) K1 CO4

9. Define Error and its Type. (2) K1 CO5

10. List any two runtime Python runtime error. (2) K1 CO5

Page 1 of 3
PART B - (4 x 15 = 60 Marks)

11. (a) (i) Explain the rules for naming a variable (8) K2 CO1

(ii) Differentiate between list and tuple. (7) K2 CO1

(OR)
(b) (i) Write a python program to accept name (8) K3 CO1

from the user and verify whether the


user is authorized or not.
(ii) Mention the features of lists in python. (7) K3 CO1

12. (a) (i) Explain the different types of operators (8) K2 CO2

used to evaluate Boolean expression.


(ii) Write a python program to find biggest of (7) K4 CO2

two numbers using conditional if.


(OR)
(b) (i) Define len function and explain how it is (8) K3 CO2

used on strings with an example.


(ii) Write the syntax and usage of while loop. (7) K4 CO2

13. (a) (i) Explain write function with example (8) K3 CO3

(ii) Explain Read Function with Example. (7) K3 CO3

(OR)
(b) (i) Write a python program to accept input (8) K4 CO3

from User and perform sum of two


numbers.
(ii) Write use of format() function with an (7) K3 CO3

example.

Page 2 of 3
14. (a) (i) Write a python program to perform two (8) K4 CO4

string operation.
(ii) Explain different types of comments in (7) K4 CO4

python.
(OR)
(b) (i) Accept input from the user and display (8) K5 CO4

the occurrence of that specific word from


a text file.
(ii) Explain try and except statement. (7) K3 CO4

PART C – Compulsory (1 x 20 = 20 Marks)

15. (i) Explain Logical Error in Details. (5) K3 CO5

(ii) Explain else and finally statement. (5) K3 CO5

(iii) Find potential sources of runtime e (10) K4 CO5

rrors in this code :


dividend = float(input("Please enter the
dividend: "))
divisor = float(input("Please enter the
divisor: "))
quotient = dividend / divisor
quotient_rounded = math.round(quotient)

Page 3 of 3

You might also like