CS201 Past Viva Question Answer
These Question is made by interviewing many CS201 Students. After Very hard work I make these Questions and are very help full to all CS201 Students not just in term of viva preparation but also in exam point of view.
Let's start!!!
(you are reading from jalal zoon website. "Subscribe to my youtube channel")
Question No. 1: Variable programming mein kun istemal kye jate hain?
Answer: Variable Data storage ke lye istemal kye jate hain.
jin ko ham furthor calculation mein istemal krte hain.
Question No. 2: int data type kitne byte ka hota hai or int kitne byte data store kr skta hai?
Answer: int 4 byte data store kr skta hai.
related Question: Double 8 byte store kr skta hai.
(you are reading from jalal zoon website. "Subscribe to my youtube channel")
Question No. 3: Variable ko C++ mein kese declare krte hain?
Answer : Data type [space] Variable name[semicolon]
Question No. 4: Variable declaration and variable initialization se kya murad hai?
Answer: Variable Declaration mein value assign ni ky jaty. variable declaration ka syntex "Data type [space] Variable name[semicolon]"
Variable initializ tab hota hai jab use declare krte hi value bhy assign kr dy jay.
Question No. 5: for loop kab istemal krna chahye?
Answer: jab hamein number of ittration pta hon tab for loop istemal krna chahye.
Question No. 6: while loop kab istemal krna chahye?
Answer: while loop tab istemal krna chahye jab hamein sirf termination condition.
(you are reading from jalal zoon website. "Subscribe to my youtube channel")
Quesiton No. 7: Do while loop kab istemal krna chahye?
Answer: Do while loop tab istemal krna chahye jab hamein kam az kam ak dfa lazmi statment ko execute krna ho befor applying the condition.
Question No. 8: C++ mein Condition statement kitni hain or kon kon c hain?
Answer: C++ mein Condition statement 2 hain.
1- if else 2- switch statment
Question NO. 9: function ki call by value and call by reference se kya murad hai?
Answer: call by value mein original value change ni hoty hai. or call by reference mein original value change ho jati hain.
(you are reading from jalal zoon website. "Subscribe to my youtube channel")
Question No. 10: call by reference mein original value kun change ho jati hai?
Answer: kun ke ham variable ka address pass krte hain function ke under jis ki wja se original value change ho jati hai.
Question No. 11: Call by value mein kun original value change ni hoty?
Answer: Because is mein ham ak local variable istemal krtein hain jo ke jo ke stack ke under rakha hota hia.
(you are reading from jalal zoon website. "Subscribe to my youtube channel")
Question No. 12: function ham kun istemal krte hian C++/ programming mein?
Answer: because function ke zrye ham reusablity obtain kr laty hai. ak dfa code likh do or jab zrorat pre call kr le.is se hamara time bach jata hai.
(you are reading from jalal zoon website. "Subscribe to my youtube channel")
Question No. 13: function declaration mein kahan or kya likhte hain?
Answer: function declaration main function se pehle likhte hain.
function declaration mein return type , function ka name or parameter list shamil hoty hai. body of function ni likhy jaty.
Question NO. 14: function defenition mein kya likhte hain ya function defenition se kya murad hai?
Answer: function defenition mein return type , function ka name or parameter list ke sath function ki body bhy likhy jaty hai. or ye main function se bahir hoty hai.
Question NO. 15: function call mein kya likhte hain?
Answer: function call mein sirf function name and us ki parameter list hoty hai.
(you are reading from jalal zoon website. "Subscribe to my youtube channel")
Question No. 16: inline function se kya murad hai/ inline function kya hote hai?
Answer: inline function c++ ka enhance version hai . is se execution speed fast ho jati hai. jis mein sarii function calls replace hoty hai function defination ke sath at run time.
Question No. 17: c++ mein inline function kese bany jate hain ?
Answer: function ke sath inline ka keyward likhne se function inline ban jata hai.
Question No. 18: pointer kya hote hain or kun istemal krte hain?
Answer: pointer special data type hai.
pointer ko ham tab istemal krte hain jab hamein addresses ko store ya manage krna ho jo ke dynamically bante hain.
(you are reading from jalal zoon website. "Subscribe to my youtube channel")
Question No. 19: int *a ka kya matlb hai?
Answer: a pointing to int data type.
Question No. 20: reference variable kun bnay jate hain?
Answer: for storing reference of variable.
Question No. 21: classes c++ mein kun istemal ki jati hain?
Answer: apni khud ki data type banne ke lye class istemal hoty hain.
(you are reading from jalal zoon website. "Subscribe to my youtube channel")
Question No. 22: ham structure kuen istemal krtein hain c++ mein?
Answer: structures mukhtlif qism ke variable ko ak name dene ke lye istemal hote hain.
Question No. 23: C++ mein kitni kism ke loop istemal hoty hain or kon kon se hain?
Answer:
C++ mein 3 loop hain. jin ke name "for loop","while loop" and "do-while loop" hain.
Question No.24: Stucture kya hote hain or kyn istemal kye jatein hain?
Answer: sturcture se ham mukhltalif kisam ke variable ko ak sath use kr skte hain by giving one name.
Question No.25: Compiler or interpreter mein kya farq hai? OR compiler kya kam krta hai and interpreter kya kam krta hai?
Answer: Compiler sare code ko aak hy dfa execute krta hai.
Interpreter line by line execute krta hai.
Question No. 26: Why we use reference variable in c++?
Answer: variable ka nick name reference variable hain. in ke under ham data ki bajay reference store krte hain. in ki declaration ke waqt in ko value zror assign krni chahye. other wise it through an error.
reference variable ham memory ke effecient use ke lye krte hain.
Question No. 27: Constructor kun istemal kye jate hain?
Answer: Constructor class ke objects ko default values dene ke lye istemal krte hain.
Question No. 28: Destructore kun istemal krtein hain?
Answer: Destructor Object ko memory se remove/delete krne ke lye istemal krte hain.
to be continuous ...
( stay connected with www.jalalzoon.blogspot.com )
Note: viva ke baad jo question ap se sir ne poochein hain please neeche comment kr dein soo that we can help new student to prepare!!!
(you are reading from jalal zoon website. "Subscribe to my youtube channel")
Is these Question are helpful ? comment bellow!!!