Question 5122 – UGC NET CS 2018 JUNE Paper-2
December 1, 2023
Question 5124 – UGC NET CS 2018 JUNE Paper-2
December 1, 2023
Question 5122 – UGC NET CS 2018 JUNE Paper-2
December 1, 2023
Question 5124 – UGC NET CS 2018 JUNE Paper-2
December 1, 2023

Question 5123 – UGC NET CS 2018 JUNE Paper-2

Which of the following statements is/are True ?
P : C programming language has a weak type system with static types.
Q : Java programming language has a strong type system with static types.

Correct Answer: C

Question 7 Explanation: 
→ A strongly typed language has stricter typing rules at compile time, which implies that errors and exceptions are more likely to happen during compilation. Most of these rules affect variable
assignment, return values and function calling.
→ A weakly typed language has looser typing rules and may produce unpredictable results or may perform implicit type conversion at runtime
→ Java, C#, Ada and Pascal are sometimes said to be more strongly typed than C, a claim that is probably based on the fact that C supports more kinds of implicit conversions, and C also
allows pointer values to be explicitly cast while Java and Pascal do not.
→ Java itself may be considered more strongly typed than Pascal as manners of evading the static type system in Java are controlled by the Java virtual machine’s type system.
→ C# and VB.NET are similar to Java in that respect, though they allow disabling of dynamic type checking by explicitly putting code segments in an “unsafe context”.
→ Pascal’s type system has been described as “too strong”, because the size of an array or string is part of its type, making some programming tasks very difficult
A
P only
B
Q only
C
Both P and Q
D
Neither P nor Q
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!!