MCQ Answer

What is the difference between ++i and i++

What is the difference between ++i and i++

++i और i++ में क्या अंतर है
Topic : JS Introduction

A. ++i increments the value after usage, while i++ increments it before ++i उपयोग के बाद मूल्य बढ़ाता है, जबकि i++ पहले इसे बढ़ाता है

B. ++i increments the value before usage, while i++ increments it after ++i उपयोग से पहले मूल्य बढ़ाता है, जबकि i++ बाद में इसे बढ़ाता है

C. Both are the same दोनों एक जैसे हैं

D. i++ is a syntax error. i++ एक सिंटैक्स त्रुटि है




Correct Answer is :

B. ++i increments the value before usage, while i++ increments it after



Latest Current Affairs 2025 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2025 Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz