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

Question 1 |

What will be printed on the screen ?

100101010 | |

10030 | |

1001020 | |

130 |

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 ?

Null | |

NaN | |

Zero | |

Infinite |

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 | |

NaN | |

+Infinity |

Question 4 Explanation:

-Infinity + -Infinity = -Infinity

Question 5 |

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

-Infinity | |

NaN | |

+Infinity |

Question 5 Explanation:

+Infinity + -Infinity = NaN

There are 5 questions to complete.