Computational Physics BS 6 Semester/Term PU — University of the Punjab 2019
Discussion
Ask a question about this paper, or help someone else with theirs. Answers are emailed to whoever asked.
No questions yet — be the first to ask.
Need a paper or stuck on a question? Ask here — students reply and you get an email.
Ask about a paper-
ADP education 4th semester only majors past papers
0 replies Reply → -
ADP sociology 4 semester social statistics 1 past paper 2025
0 replies Reply → -
2025 ka past paper dy
0 replies Reply → -
ICT 1st sister paper
1 reply Reply → -
BS Islamic Studies, 5th semester, ISL-511 Translation of Holy Quran (3) — Government College University Faisalabad (GCU…
0 replies Reply →
Paper text
UNIVERSITY OF THE PUNJAB
B.S. 4 Years Program / Sixth Semester - 2019
Paper: Computational Physics-I
Course Code: PHY-311 Part - I (Compulsory) Time: 15 Min. Marks: 10
ATTEMPT THIS PAPER ON THIS QUESTION SHEET ONLY.
Division of marks is given in front of each question.
This Paper will be collected back after expiry of time limit mentioned above.
Q.1. Encircle the correct choice. (1x10=10)
i. C++ program statement ends with a:
a) getch()
(b) void main ()
(c) semicolon
(d) comma
ii. In C++ what is not a selection:
a) select
(b) if
(c) switch
(d) if-else
iii. C++ language, LIBRARY TYPE that provides stream oriented input and output is
called:
(a) Header
(b) #include
(c) iostream
(d) both
(a) &
(b)
iv. Which of the following is an assignment operator in C++?
(a) ==
(b) =
(c) +
(d) !=
v. Which escape sequence can be used to begin a new line in C++:
(a) \new
(b) \n
(c) \next
(d) \t
vi. The pow () is a:
(a) Operator
(b) user defined function
(c) built in function
(d) None
vii. In C++, a loop with fix number of iterations is:
(a) While
(b) do-while
(c) for
(d) None
viii. If x =23 and y= 32, then for statement " y == x" which of the following result is
true
(a) x equals y
(b) x is greater than y
(c) true
(d) false
ix. In C++ the expression 45%2 is evaluated to:
(a) 2.0
(b) 1
(c) 22.5
(d) error
x. Which of the following is not a Boolean operator for in C++ :
(a) &&
(b) ||
(c) =
(d) none