MCQ Answer

What is the difference between a declaration and a definition of a variable?

What is the difference between a declaration and a definition of a variable?

variable के declaration और definition के बीच अंतर क्या है?
Topic : Introduction

A. Both can occur multiple times, but a declaration must occur first. दोनों कई बार हो सकते हैं, लेकिन घोषणा पहले होनी चाहिए।

B. A definition occurs once, but a declaration may occur many times. एक परिभाषा एक बार होती है, लेकिन एक घोषणा कई बार हो सकती है।

C. Both can occur multiple times, but a definition must occur first. दोनों कई बार हो सकते हैं, लेकिन परिभाषा पहले होनी चाहिए।

D. A declaration occurs once, but a definition may occur many times. एक घोषणा एक बार होती है, लेकिन एक परिभाषा कई बार हो सकती है।




Correct Answer is :

D. A declaration occurs once, but a definition may occur many times.



Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 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 Best Website and Software Company in Allahabad