0% found this document useful (0 votes)
4 views1 page

C Programming Assignment Questions

The document is an assignment for 2nd-year Computer Science & Engineering students at Rajendranath College of Polytechnic. It includes programming tasks in Python, such as checking if a number is even or odd, printing decimal equivalents, finding the biggest number among three, and discussing Python concepts like the interpreter, data structures, memory management, control flow statements, and the self parameter in methods. Students are instructed to submit handwritten answers in a specified format.

Uploaded by

drakhi876
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)
4 views1 page

C Programming Assignment Questions

The document is an assignment for 2nd-year Computer Science & Engineering students at Rajendranath College of Polytechnic. It includes programming tasks in Python, such as checking if a number is even or odd, printing decimal equivalents, finding the biggest number among three, and discussing Python concepts like the interpreter, data structures, memory management, control flow statements, and the self parameter in methods. Students are instructed to submit handwritten answers in a specified format.

Uploaded by

drakhi876
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

RAJENDRANATH COLLEGE OF POLYTECHNIC

GOPALPUR, DURGAPUR-12
DEPT: COMPUTER SCIENCE & ENGINEERING, YEAR: 2ND, SEM: 3RD, SUB:
COMPUTER PROGRAMMING IN C ASSIGNMENT

ANSWER THE FOLLOWING QUESTIONS WITH APPROPIATE OUTPUT:

1. WRITE A PYTHON PROGRAM FOR CHECKING THE GIVEN NUMBER IS EVEN OR


ODD:

2. USING A FOR LOOP, WRITE A PROGRAM THAT PRINTS THE DECIMAL


EQUIVALENTS OF 1/2, 1/3, 1/4 ,....... 1/10

3. WRITE A PROGRAM FOR FINDING BIGGEST NUMBER AMONG 3 NUMBERS.

4. DESCRIBE THE PYTHON INTERPRETER. HOW DOES IT EXECUTE PYTHON


CODE AND WHAT IS THE DIFFERENCE BETWEEN INTERPRETED AND
COMPILED LANGUAGES?

5. DESCRIBE PYTHON’S BUILT-IN DATA STRUCTURES (LIST, TUPLE, DICTIONARY,


SET). COMPARE THEIR FEATURES AND USE-CASES.

6. DISCUSS PYTHON’S MEMORY MANAGEMENT. EXPLAIN REFERENCE


COUNTING, GARBAGE COLLECTION, AND THE ROLE OF THE PYTHON MEMORY
MANAGER.

7. WRITE A DETAILED NOTE ON PYTHON’S CONTROL FLOW STATEMENTS.


EXPLAIN THE WORKING OF IF, ELIF, ELSE, FOR, AND WHILE LOOPS WITH
EXAMPLES.

8. EXPLAIN THE PURPOSE OF THE EXTEND () FUNCTION IN PYTHON LISTS. HOW


DOES IT DIFFER FROM THE APPEND () FUNCTION? PROVIDE EXAMPLES
DEMONSTRATING THE DIFFERENCE.

9. DISCUSS THE ROLE OF THE SELF PARAMETER IN PYTHON METHODS. WHY IS


IT REQUIRED, AND HOW DOES IT HELP IN ACCESSING INSTANCE VARIABLES
AND OTHER METHODS WITHIN A CLASS?

*NOTE:
 Use A4 Size Page with Channel File.
 For this assignment, you are required to write the answers in
your own Handwriting.
 Submit the assignment with proper Lab Copy format and also
attach the Index page.

You might also like