Semester : SEMESTER 5
Subject : Computational Physics
Year : 2021
Term : NOVEMBER
Branch : PHYSICS
Scheme : 2020 Full Time
Course Code : PHY 5B 06
Page:1
D 10681 (Pages : 2) पपि या © ०००००००००००००००००००००००००००००००००००००००००
FIFTH SEMESTER U.G. DEGREE EXAMINATION, NOVEMBER 2021
(CBCSS—UG)
Physics/Applied Physics
PHY 5B 06/APH 5B 06—COMPUTATIONAL PHYSICS
(2019 Admissions)
Time : Two Hours Maximum : 60 Marks
The symbols used in question paper have their usual meanings.
Section A (Short Answer Type)
Answer at least eight questions.
Each question carries 3 marks.
All questions can be attended.
Overall Ceiling 24.
1. Identify the functional differences of the Compiler and the Interpreter in the context of high-level
computer languages.
Write an algorithm to check whether a given number is odd or even.
List the different datatypes in Python.
2
3
4, Write a Python program to print the multiplication table of 9 having 20 rows using while loop.
5. What is a tuple ? How it is different from list ?
6
Discuss about the functional differences of break and continue statements in Python.
7. Write a Python program to plot the function + = sin x within the region 01௦ 2.
8. Write a Python program to create a3 x 2 matrix having random numbers ranging between 0 and
1 as elements.
9. Explain the least squares curve fitting procedures.
10. Construct a forward difference table for the following data :
x : 0 1 2 3 4
y : 1 3 9 27 81
11. How the subintervals width is associated with the error in Trapezoidal rule and Simpson’s 1/3 rule
for numerical integration ?
12. Discuss the advantages of numerical methods over analytical methods.
(8 x 3 = 24 marks)
Turn over
12039