...
UGC NET CS 2010 Dec-Paper-2
October 11, 2023
KVS 22-12-2018 Part-A
October 11, 2023
UGC NET CS 2010 Dec-Paper-2
October 11, 2023
KVS 22-12-2018 Part-A
October 11, 2023

UGC NET CS 2010 Dec-Paper-2

Question 12
The value of the following expression (13 / 4 * 3) % 5 + 1 is
A
5.75
B
2.95
C
1.4875
D
5
Question 12 Explanation: 
(13 / 4 * 3) % 5 + 1
Step-1: (13 / 4 * 3) % 5 + 1
Step-2: (3.25*3)%5+1
Step-3: 9.75%5+1
Step-4: 4.75+1
Step-5: 5.75
Note: ( ) having highest precedence then *,/ and % have same precedence order.
Correct Answer: A
Question 12 Explanation: 
(13 / 4 * 3) % 5 + 1
Step-1: (13 / 4 * 3) % 5 + 1
Step-2: (3.25*3)%5+1
Step-3: 9.75%5+1
Step-4: 4.75+1
Step-5: 5.75
Note: ( ) having highest precedence then *,/ and % have same precedence order.
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!