rummanansari Template
  • Home
  • Blog
    • Blog - HOME
    •   Technical
    • Search Engine Optimization
    • Data Structure
    • Image Processing
    • C Programming
    • .NET
    • SQL Server
    • TCS Preparation
    • Miscellaneous
    •   Non Technical
    • Top 10
    • Life Lesson
    •   Quotes
    • English Quotes
    • Bangla Quotes
    • Bangla to English Translations
    • Bangla Kobita
    • Bangla Whatsapp Story
  • Topics
    • GK - HOME
    • Basic GK
    • General Science
    • Honours and Awards
    • Inventions
    • World Organisations
    • Important Days
    • World Geography
    • Indian Geography
    • Indian History
    • Computer Awareness
    • MS excel, office etc.
    • Problems on Train
    • more...
  • Course
    • Library Home
    • AJAX
    • AngularJS
    • Arithmetic Aptitude
    • Artificial intelligence
    • Automata Theory
    • AZ-400: Designing and Implementing Microsoft DevOps Solutions
    • Azure DevOps for Beginners
    • Bangla to English
    • Biography
    • Biology
    • Bootstrap 4
    • C Programming Language
    • C Programming Language Video Bangla
    • C# Programming Language
    • C++ language
    • Competitive Exam
    • Computer Awareness Video
    • Computer Fundamentals
    • Computer Network
    • Computer Science and Engineering
    • Continuous Deployment
    • Continuous Integration
    • CSS
    • Current Affairs
    • Data Structure
    • Database Management System
    • Digital Logic
    • Education
    • Electrical Engineering
    • English
    • English Grammar
    • General Aptitude
    • Geography
    • History
    • HTML 5
    • Important Days and Dates
    • Interview Questions
    • ISC - COMPUTER SCIENCE - XI
    • Islam
    • Java Programming Language
    • JavaScript
    • Leadership behavior and Culture
    • Logical Fallacy
    • Machine Learning
    • Mastering HTML: From Fundamentals to Advanced Concepts
    • Mathematics
    • Mathematics for Programming
    • Mathematics in Bangla - Class 5
    • MB-310: Microsoft Certified: Dynamics 365 Finance Functional Consultant Associate
    • MB-330: Microsoft Certified: Dynamics 365 Supply Chain Management Functional Consultant Associate
    • MB-700: Microsoft Dynamics 365: Finance and Operations Apps Solution Architect
    • MB-920: Microsoft Dynamics 365 Fundamentals (ERP)
    • Microservices Architecture
    • Microsoft Azure
    • Microsoft Excel - Bangla
    • Mindwork games
    • Miscellaneous Topics
    • Misconceptions about Islam
    • MySQL
    • Neural Networks and Deep Learning
    • NPM - Package Manager
    • Pakistan Geography
    • Photoshop
    • PHP
    • Programming Language
    • Prompt Engineering
    • Puzzles
    • Python
    • R Programming Language
    • ReactJS
    • Science
    • Social Science
    • SQL
    • SQLite
    • Tamil Nadu State board (Class 10)
    • Technical MCQs
    • Technical Short Answers
    • TypeScript - JavaScript's Superset
    • UGC NET, SET
    • User Experience
    • Verbal and Reasoning
    • Vue JS
    • অতীত ও ঐতিহ্য: অষ্টম শ্রেণীর: পশ্চিমবঙ্গ মধ্যশিক্ষা পর্ষদ
    • অর্থনীতি
    • আরবী ভাষা কোর্স - Diploma in Arabic language
    • ইতিহাস
    • ইতিহাস ও পরিবেশ: দশম শ্রেণি: পশ্চিমবঙ্গ মধ্যশিক্ষা পর্ষদ
    • ইসলামিক বই
    • ইসলামে আকীকা
    • ইসলামে নারী
    • এসো আরবী শিখি
    • কুরআন
    • খাদ্য, পুষ্টি ও খাদ্যের উপাদান
    • জীবনবিজ্ঞান ও পরিবেশ (দশম)
    • তাহারাত কুইজ প্রতিযোগিতা
    • নবীদের কাহিনী - The story of the prophets
    • পরিবেশ ও বিজ্ঞান
    • প্যারেন্টিং - Parenting
    • প্রচলিত ভুল বিষয়ে প্রতিযোগিতা টেস্ট কুইজ
    • প্রশ্নোত্তরে ইসলামী জ্ঞান
    • বাংলা ইসলামিক কুইজ - Bangla Islamic Quiz
    • বাংলা সাহিত্য
    • ব্যক্তিগত উন্নয়ন (Personal Development)
    • ভূগোল
    • মডার্ন কম্পিউটার অ্যাপ্লিকেশন - একাদশ শ্রেণী
    • মডার্ন কম্পিউটার অ্যাপ্লিকেশন - দ্বাদশ শ্রেণী
    • লেখক এবং কবি
    • শয়তান পরিচিতি
    • সংক্ষিপ্ত জীবনী
    • সাধারণ জ্ঞান
    • সাহাবীদের জীবনী
    • সীরাত প্রতিযোগিতার প্রশ্ন ও উত্তরসমূহ
  • Paid Courses
    • Library Home
    • X++ Programming Language
    • X++ Programming Fundamentals - D365 F&O Technical
    • D365 F&O MCQ Questions - X++ Programming Language MCQ
    • ICSE Computer Applications Class 10 – Previous Year Question Papers & Solutions
    • GH-300: GitHub Copilot
    • Java Fundamentals: Building Strong Foundations
    • MB-500: Microsoft Dynamics 365: Finance and Operations Apps Developer
    • Authentication
    • Digital Productivity
    • Mastering JavaScript: From Fundamentals to Advanced Concepts
  •  Login
    • Login - Dashboard
    • Login - Here
    • About Our Team
    • Privacy Policy
    • Terms and Conditions
    • Cancellation and Refund Policy
    • Shipping and Delivery Policy
    • Guest Post Rule
    • Contact Us
Menu

Login and Register

Go to Dashboard Logged In Successfully!


Check your Email for the OTP


  • Login
  • Registration
  • Forget Password



JavaScript Operator MCQ - Quiz

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10

What is the result of the following code?
console.log(5 - '5');

  • B'55'
  • C'0'
  • D'5'

What is the result of the following code?
console.log(true && false);

  • Atrue
  • Bfalse
  • D1

What is the result of the following code?
var x = true;
var y = false;
console.log(x || y);

  • Atrue
  • Bfalse
  • C"true"
  • D"false"

What is the result of the following code?
var obj = {};
console.log(obj instanceof Object);

  • Atrue
  • Bfalse
  • C"true"
  • D"false"

How many months have a length of 31 days?

  • AFive
  • BSix
  • CSeven
  • DEight

What is the result of the following code?
var x = 10;
var y = 20;
console.log(x << y);

  • A100000
  • B1000
  • C2000
  • D1000

What is the result of the following code?
var x = 10;
var y = 20;
console.log(x >> y);

  • A10
  • B2
  • C3

What is the result of the following code?
var x = "Hello";
var y = "World";
console.log(x in y);

  • Atrue
  • Bfalse
  • C"true"
  • D"false"

What is the result of the following code?
var x = 10;
var y = 20;
console.log(x ^ y);

  • A10
  • B20
  • C30

What is the result of the following code?
var str = "Hello World!";
console.log(str.startsWith("Hello"));

  • Atrue
  • Bfalse
  • C"false"
  • D"true"
Results:
🟢 Correct Answers:   🔴 Wrong Answers:

💹 View Detailed Quiz Results

🛫 Take Another Quiz
Login to save results
Quiz Information
Quiz Information

Quiz Platform FAQ

General Information

  • Number of Questions: Each quiz consists of 10 questions.
  • Time Limit: You have 30 seconds per question. The total time to complete the quiz is 5 minutes.
  • Multiple Attempts: You can take the quiz multiple times to improve your score.

Results and Feedback

  • Result Analysis: After completing the quiz, you will see a results page with the following details:
    • Correct Option for each question.
    • Your Selected Option for each question.
    • Explanation for each answer to help you understand why it is correct or incorrect.
    • Percentage of Correct Answers to show your overall performance.
  • Interactive Features: The platform provides feedback on each attempt to help you learn and improve.

Important Instructions

  • Do Not Refresh: Do not refresh the page while taking the quiz. Refreshing the page will end the current quiz and a new quiz will start.
  • Saving Your Quiz: To save your quiz progress and questions, log in to your account. Once logged in, you can view saved quizzes in your profile section.
  • Mandatory Selection: All questions are mandatory to select. If you do not select all 10 questions, you will not be able to submit the quiz. Once all questions are selected, you will be able to see the Submit button. If you wait until the end of the time, the quiz will be auto-submitted by the system, and you will be able to see your results.

Tips for Taking the Quiz

  • Manage Your Time: Keep track of the time for each question to ensure you have enough time to answer all 10 questions.
  • Review Explanations: After the quiz, read the explanations provided for each answer to enhance your understanding of the material.
  • Retake the Quiz: If desired, take the quiz again to improve your score and reinforce your learning.
  • Avoid Refreshing: To prevent losing progress, avoid refreshing the page during the quiz.
  • Log In to Save: If you want to save your quiz progress, log in to your account and check your profile section for saved quizzes.
Quiz Analytics

JavaScript Operator MCQ - Quiz

Guest User clock Time Taken:
Questions: Answered: Not Answered:
rightCorrect Answer: wrongWrong Answer: percentage smallPercentage: %

Q: What is the result of the following code?
console.log(5 - '5');

  • B. '55'
  • C. '0'
  • D. '5'
Correct Option: A
Remarks:

Explanation:

The result of the code is 0 .
In JavaScript, the - operator performs subtraction if both operands are numbers. .
In this case, the string '5' is converted to the number 5, so the final result is 5 - 5 = 0..

Q: What is the result of the following code?
console.log(true && false);

  • A. true
  • B. false
  • D. 1
Correct Option: B
Remarks:

Explanation:

The result of the code is false.
The && operator in JavaScript performs a logical and operation, which means that it returns true only if both operands are truthy.
In this case, the first operand is truthy (true), but the second operand is false then the result is also false

Q: What is the result of the following code?

var x = true;
var y = false;
console.log(x || y);

  • A. true
  • B. false
  • C. "true"
  • D. "false"
Correct Option: A
Remarks:

Explanation:

The || operator in JavaScript performs a logical OR operation on its operands.
If either operand is truthy, the result is true, otherwise the result is false.
In this case, the first operand (x) is truthy (true), so the result of the || operation is true, regardless of the value of the second operand (y).

Q: What is the result of the following code?

var obj = {};
console.log(obj instanceof Object);

  • A. true
  • B. false
  • C. "true"
  • D. "false"
Correct Option: A
Remarks:

Explanation:

The instanceof operator in JavaScript is used to determine whether an object is an instance of a particular constructor or class.
In this case, the variable obj has been assigned an empty object.
The instanceof operator is called on obj, with Object as the right operand.
Since obj is an instance of the Object constructor, the instanceof operator will return true.

Q: How many months have a length of 31 days?

  • A. Five
  • B. Six
  • C. Seven
  • D. Eight
Correct Option: C
Remarks:

Explanation:

Answer: C

Explanation: Seven months have a length of 31 days: January, March, May, July, August, October, and December.

Q: What is the result of the following code?

var x = 10;
var y = 20;
console.log(x << y);

  • A. 100000
  • B. 1000
  • C. 2000
  • D. 1000
Correct Option: A
Remarks:

Explanation:

The << operator in JavaScript is the left shift operator, which performs a bitwise left shift operation on its operands.
In this case, the << operator is called on x and y, with x as the first operand and y as the second operand.
Since x is 10 and y is 20, the result of the << operator will be the left shift of the binary representation of 10 by 20 bits, which is 100000 in decimal.

Q: What is the result of the following code?

var x = 10;
var y = 20;
console.log(x >> y);

  • A. 10
  • B. 2
  • C. 3
Correct Option: D
Remarks:

Explanation:

The >> operator in JavaScript is the right shift operator, which performs a bitwise right shift operation on its operands.
In this case, the >> operator is called on x and y, with x as the first operand and y as the second operand.
Since x is 10 and y is 20, the result of the >> operator will be the right shift of the binary representation of 10 by 20 bits, which is 0 in decimal.

Q: What is the result of the following code?

var x = "Hello";
var y = "World";
console.log(x in y);

  • A. true
  • B. false
  • C. "true"
  • D. "false"
Correct Option: B
Remarks:

Explanation:

The in operator in JavaScript is used to determine whether an object has a particular property.
In this case, the in operator is called on x and y, with x as the left operand and y as the right operand.
Since y is a string and does not have any properties, the in operator will return false.

Q: What is the result of the following code?

var x = 10;
var y = 20;
console.log(x ^ y);

  • A. 10
  • B. 20
  • C. 30
Correct Option: C
Remarks:

Explanation:

The ^ operator in JavaScript is the bitwise XOR operator, which performs a bitwise XOR operation on its operands.
In this case, the ^ operator is called on x and y, with x as the first operand and y as the second operand.
Since x is 10 and y is 20, the result of the ^ operator will be the bitwise XOR of the binary representations of 10 and 20, which is 30 in decimal.

Q: What is the result of the following code?

var str = "Hello World!";
console.log(str.startsWith("Hello"));

  • A. true
  • B. false
  • C. "false"
  • D. "true"
Correct Option: A
Remarks:

Explanation:

The startsWith method in JavaScript is a method that can be called on a string value to determine whether the string starts with the specified string.
In this case, the startsWith method is called on the string "Hello World!", with the string "Hello" as the argument.
Since the string "Hello World!" does start with the string "Hello", the startsWith method will return true.

Useful Links

  • Home
  • About us
  • Terms of service
  • Guest Post
  • Advertisement

Login

  • login
  • Sign Up

Visit All Home

  • Syllabus
  • Subject
  • Library
  • GK/MCQ
  • Blog

Social Links

  • Join Whatsapp Group
  • Join Telegram Group
© Copyright rummanansari. All Rights Reserved
Designed by rummanansari.com

You have unsaved changes or are in the middle of a quiz. If you leave, your progress might be lost. Select option for all questions.