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

CA3 Question

This document contains a summary of a class test conducted on December 20th, 2022 for the Programming Concepts with Python course. The test had 11 multiple choice and short answer questions worth a total of 25 marks. The questions covered topics like Python developers, pip, string formatting, loops, slicing, copying, integer and binary conversions, and substring counting. The document also lists which course outcomes each question addresses.

Uploaded by

Sukla Banerjee
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
96 views1 page

CA3 Question

This document contains a summary of a class test conducted on December 20th, 2022 for the Programming Concepts with Python course. The test had 11 multiple choice and short answer questions worth a total of 25 marks. The questions covered topics like Python developers, pip, string formatting, loops, slicing, copying, integer and binary conversions, and substring counting. The document also lists which course outcomes each question addresses.

Uploaded by

Sukla Banerjee
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Department of Computer Application

RCC Institute of Information Technology


Canal South Road, Kolkata - 700015
____________________________________________________________________________________________

Test No.: CA-3 Date of Class Test: 20-12-2022


Course Name: Programming Concept with Python Course Code: MCAN 101
Semester: 1st Year, 1st Semester, MCA Academic Session: 2022-2023
Time: 1hr Full Marks: 25

Answer any five(5)- 1 x 5 =5

1. Who is the developer of Python programming?


a) Guido van Rossum b)Denis Ritchie c)Y.C. Khenderakar d)None

2. What does pip stand for python?


a) Pip Installs Python b) Pip Installs Packages c) Preferred Installer Program d) All of the above

3. What will be the output of the following Python expression if x=56.236, >> print("%.2f"%x)
a) 56.236 b) 56.23 c) 56.0000 d) 56.24

4. What will be the output of the following Python code snippet?


for i in [1, 2, 3, 4][::-1]:
print (i)
a) 4 3 2 1 b) error c) 1 2 3 4 d) none of the mentioned

5. What will be the output of the following Python code? print("abc. DEF".capitalize())
a) Abc. Def b) abc. Def c) Abc. Def d) ABC. DEF

6. What will be the output of the following Python code?


x = 'abcd'
for i in range(len(x)):
print(i)
a) error b) 1 2 3 4 c) a b c d d) 0 1 2 3
Answer any four(4)- 4 x5 =20

7. Compare and contrast the difference between List and strings with suitable examples. 5

8. What is shallow copy in python? Discuss with an example. How can it be avoided? 3+2

9. How to create an integer from a binary number in python. Also write how to get binary equivalent of an
integer? Discuss string.format() in details. 1+1+3

10. Sow how a decimal number is created in python. Why is it used in python? What are their limitations
in comparison to floating point numbers? 2+1+2

11. Write a program in Python to print number of occurrence of a substring within a string in both ways
using slicing and string methods. 3+2

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

QN CO QN CO QN CO QN CO QN CO QN CO QN CO
1 CO1 2 CO1 3 CO3 4 CO3 5 CO3 6 CO3 7 CO3
8 CO3 9 CO3 10 CO3 11 CO4

QN: Question Number, CO: Course Outcome

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy