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

Python E3 2020

This document outlines the questions and sections for the Third Semester Degree Examination in November 2020 for Electronics. It includes 3 sections - Section A with short answer questions worth a total of 30 marks, Section B with longer answer questions worth a total of 30 marks, and Section C with two essay questions each worth 10 marks for a total of 20 marks. Students must answer questions covering programming fundamentals, control structures, functions, data types, and more related to Python programming. The exam tests both basic concepts and ability to write programs to solve problems.

Uploaded by

Orbin Sunny
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)
22 views

Python E3 2020

This document outlines the questions and sections for the Third Semester Degree Examination in November 2020 for Electronics. It includes 3 sections - Section A with short answer questions worth a total of 30 marks, Section B with longer answer questions worth a total of 30 marks, and Section C with two essay questions each worth 10 marks for a total of 20 marks. Students must answer questions covering programming fundamentals, control structures, functions, data types, and more related to Python programming. The exam tests both basic concepts and ability to write programs to solve problems.

Uploaded by

Orbin Sunny
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

THIRD SEMESTER DEGREE EXAMINATION, NOVEMBER 2020

SEMESTER (CBCSS-UG) DEGREE


NOVE.l\1BER 2020

Electronics

ELE 3A 11-GENERAL COURSE I PYTHON PROGRAMMING


Time : Two Hours and a Half Maximum : 80 Marks
Section A

Answer at least ten questions.


Each question carries 3 marks.
All questions can be attended.
Overall Ceiling 30.
1 What is a byte code?
What are identifiers u:i python ?
?" Give the membership op·erators in pyth.on with examples.
/

l"
� Ex:p1ain output statements in Python.

f Write t);ie syntax of for loop statement.


ef What are loop control statements?
Explain range( ) function.

What are the advantages of function ?

t
3/
9: Define positional arguments in a function,

How function can is done in Python ?

11 What are local variables?


/
12. ¥/'hat are the different ways to create strings in Python?


1%. What are Lists?
What are the mies fo, oreating keys in a diotionary ?
15. How the elements in a string can be accessed using fir loop?
Section Ji

An,swer at least five questions.


Each question carri.es 6 marks.
All questio,1.s ean be attendPd.
Overall Ceiling, 30.

js. Explain the different relational operators in Python with examples.


17. Write a program to find the sum of all odd and even numbers up to a number specified by the user.
18. Write a program to check Whether a 1;1umher is prime or not. Prompt user for input:.


19. Find the area and circumference of a circle. Prompt user for input.
Describe the syntax for the following function and explain with ¥1 example :
a) abs() b) max() c) pow() d) Jen() e) sort()

21. Write a program to add.two numbers using function.


22. Write a Python code to find the mean and variance from a list of numbers.

¥· Describe the syntax for the following function and explain with an example :
a) replace() b) rstrip() c) reverse() d) count() e) join()
(5 x 6 = 30 marks)

Section C
Answer any two questions.
Each que.stion carries 10 marks.

'l(f. Explain the different data types used in Python with examples.

25. Write a program to print the sum of the following series: 1 + 1/2 + 1/3 + 1/4 + .... + 1/n:

26. Write a Python program using function to find the value of npr = n !/( n - r) ! Without usin� in
built factorial() function.

27. Write a Python program to ·check for the pre. sence of a key in the dictionar:y and sum all its values.
(2 X 10 = 20 marks)

For More Question Paper and Study Materials Visit


dashscholar.com

You might also like