## JavaScript MCQ : JS Statements (Multiple Choice Questions)

Question 1 |

What will be printed on the screen ?

100101010 | |

130 | |

1001020 | |

10030 |

Question 1 Explanation:

String + Number = String

Question 2 |

During addition of two numbers , suppose one of the number is NaN then output of the following code will be ?

Zero | |

Infinite | |

NaN | |

Null |

Question 2 Explanation:

NaN + Any Value = NaN

Question 3 |

+Infinity in JS gets added with +Infinity then output of the code will be -

-Infinity | |

NaN | |

+Infinity |

Question 3 Explanation:

+Infinity + +Infinity = +Infinity

Question 4 |

-Infinity in JS gets added with -Infinity then output of the code will be -

-Infinity | |

+Infinity | |

NaN |

Question 4 Explanation:

-Infinity + -Infinity = -Infinity

Question 5 |

-Infinity in JS gets added with +Infinity then output of the code will be -

NaN | |

-Infinity | |

+Infinity |

Question 5 Explanation:

+Infinity + -Infinity = NaN

There are 5 questions to complete.