Its Time to check our Knowledge ……

Quiz time …..

It is good to check our knowledge ,let’s Look at the questions and check our Knowledge. The answers for all the questions are mentioned at the end of the post.

Question 1:

Which one of these Variable Types is used for storing a number with a decimal point (such as 52.63) ?

A. Integer

B. Complex

c. Double

D. Logical

Question 2:

What will the following code output in the console when executed?

var1 <- 10

var2 <- 200

result <- var1 > var2

result

Options :

A. 200

B. FALSE

C.TRUE

D. Doesn’t Print anything

Question 3:

How many times will the following code output the message “Hello World” ?

counter <- 1

while(counter < 5)

{

print(“Hello World”)

counter = counter + 1;

}

Options:

A. 1 B. 5 C. Infinity D. 4

The Answers for the questions :

  1. C -> Double
  2. B -> FALSE
  3. D -> 4