Aspire's Library

A Place for Latest Exam wise Questions, Videos, Previous Year Papers,
Study Stuff for MCA Examinations - NIMCET

Previous Year Question (PYQs)



Which of the following statements is/are true?

$P$: In a scripting language like JavaScript, types are typically associated with values, not variables.

$Q$: It is not possible to show images on a web page without the <img> tag of HTML.

Select the correct answer from the options given below:






Solution

Statement $P$ is true.

JavaScript is dynamically typed. In JavaScript, variables can store values of different types at different times.

So, types are associated with values, not fixed permanently with variables.

Statement $Q$ is false.

Images can also be shown on a web page using CSS background images, SVG, canvas, object tag, embed tag, etc.

So, it is possible to show images without using the <img> tag.

Therefore, only $P$ is true.



Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More


Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More

Ask Your Question or Put Your Review.

loading...