35
Each Question carries 2 marks. Choose correct or the best alternative in the following: Q.1 The address of a variable temp of type float is (A) *temp (B)&temp (C) float& temp ()float temp& Ans: B Q.2 What is the output of the following code char symbol[3]={a!"b!"c!#$ for %int inde ='$ inde (3$ inde )) cout (( symbol [inde ]$ (A)a b c (B)+abc, (C)abc ()abc! Ans: C Q.! The process of building new classes from e isting one is called ------. (A) /olymorphism (B) 0tructure (C) 1nheritance ()2ascading Ans: C Q." 1f a class 2 is derived from class " which is derived from class 4" all thr inheritance" then a class 2 member function can access

Each Question Carries 2 Marks

Embed Size (px)

DESCRIPTION

jgh

Citation preview

Each Question carries 2 marks.Choose correct or the best alternative in the following:Q.1 The address of a variable temp of type float is (A) *temp (B) &temp (C) float& temp (D) float temp& Ans: BQ.2 What is the output of the following code char symbol[3]={a,b,c}; for (int index=0; index100) cout