Programming in C Lab: Model Viva Questions For " "
Programming in C Lab: Model Viva Questions For " "
Title of the Practical: Assignment so identify valid and invalid variables, constants and expressions
Q1: What is a variable?
A1: Variable represents a named memory location whose values can be manipulated during program run.
Q9: What is the range of integer constant for compilers like Turbo C?
A9: Range: -32768 to 32767.
Q7: From which is the pointer to object of a base class type compatible ?
A7: Pointers to object of a base class type is compatible with pointer to onject of a derived class . Therefore , we can use
single pointer variable to point to objects of base class as well as derived class.
Q8: What is a this pointer?
A8: A special pointer known as this pointer stores the address of the object that is currently invoking a member function.
Q9:Where is switch statement is useful?
A9: Switch statement is useful while writing menu driven programs..
Q10: Why is Arrow operator (-> ) used?
A10: The arrow operator is used to access the public members of the class with a pointer to an object.
Title of the Practical: Program based on one dimensional array and two dimensional arrays
Q1: What are arrays?
A1:An array is similar to an ordinary variable except that it can store multiple elements of similar type.
Q2: Does compiler perform bound checking on an arrays?
A2: No, It doesnot perform bound checking on arrays.