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?