0% found this document useful (0 votes)
3 views2 pages

Python CIA 1

This document outlines the internal test for the I M. Sc Computer Science program at Government Arts and Science College, Komarapalayam for the 2024-2025 batch. It includes multiple-choice questions on Python programming, as well as descriptive questions covering strings, tuples, functions, decision making, comprehensions, and error handling. The test is structured with a total of 50 marks, divided into sections for different types of questions.

Uploaded by

Santhosh. K
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)
3 views2 pages

Python CIA 1

This document outlines the internal test for the I M. Sc Computer Science program at Government Arts and Science College, Komarapalayam for the 2024-2025 batch. It includes multiple-choice questions on Python programming, as well as descriptive questions covering strings, tuples, functions, decision making, comprehensions, and error handling. The test is structured with a total of 50 marks, divided into sections for different types of questions.

Uploaded by

Santhosh. K
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

GOVERNMENT ARTS AND SCIENCE COLLEGE, KOMARAPALAYAM - 638183

DEPARTMENT OF COMPUTER SCIENCE


I M. Sc COMPUTER SCIENCE (2024 - 2025 BATCH) – ODD SEMESTER
INTERNAL TEST –1
Date : .10.2024 Time : 2.00 hrs Marks : 50

ANSWER ALL THE QUESTIONS (5×1=5)


1. How can you concatenate two strings in Python?
A. concat() method B. the join() method C. the & operator D.the + operator
2. Which keyword is used for function in Python language?
A. function B. def C. fun D. define
3.What is the output of the following code? print(type(5.0))
A. int B. float C. str D. bool
4. Which of the following is the correct syntax to create a tuple in Python?
A. tuple = (1, 2, 3) B. tuple = [1, 2, 3] C. tuple = {1, 2, 3} D. tuple = 1, 2, 3
5.what is the output of following code? a=0.1,b=0.2,c=0.3 print(a+b= =c)
A. True B. False C. Error D. None

ANSWER ALL THE QUESTIONS (3×5=15)

1. Write note on String ?

2. Explain concept of Tuples with example ?

3. Explain Functions with example?

ANSWER ALL THE QUESTIONS (3×10=30)

1.Discuss about decision making and iteration ?

2. Explain Comprehensions ?

3. Handle Errors with try and except, give example?


GOVERNMENT ARTS AND SCIENCE COLLEGE, KOMARAPALAYAM - 638183
DEPARTMENT OF COMPUTER SCIENCE
I M. Sc COMPUTER SCIENCE (2024 - 2025 BATCH) – ODD SEMESTER
INTERNAL TEST –1
Date : .10.2024 Time : 2.00 hrs Marks : 50

ANSWER ALL THE QUESTIONS (5×1=5)


1. How can you concatenate two strings in Python?
A. concat() method B. the join() method C. the & operator D.the + operator
2. Which keyword is used for function in Python language?
A. function B. def C. fun D. define
3.What is the output of the following code? print(type(5.0))
A. int B. float C. str D. bool
4. Which of the following is the correct syntax to create a tuple in Python?
A. tuple = (1, 2, 3) B. tuple = [1, 2, 3] C. tuple = {1, 2, 3} D. tuple = 1, 2, 3
5.what is the output of following code? a=0.1,b=0.2,c=0.3 print(a+b= =c)
A. True B. False C. Error D. None

ANSWER ALL THE QUESTIONS (3×5=15)

1. Write note on String ?

2. Explain concept of Tuples with example ?

3. Explain Functions with example?

ANSWER ALL THE QUESTIONS (3×10=30)

1.Discuss about decision making and iteration ?

2. Explain Comprehensions ?

3. Handle Errors with try and except, give example?

You might also like