C++ programming language mcq pdf free download






















B Class A is friend of class C. C Class A and Class C do not have any friend relationship. D None of the above. A A file in which recoreds are arranged in a way they are inserted in a file.

B A file in which records are arranged in a particular order. C Files which are stored on a direct access storage medium. A Access method. Appending d. Latency time is: a. Time taken to transfer a dta from memory c. The two types of file structure existing in VSAM file are a. Key sequenced structure, entry sequenced structure b. Key sequence structure, exit sequenced structure c. Entry sequence structure, exit sequenced structure d.

How many copies of a class static member are shared between objects of the class? A copy of the static member is shared by all objects of a class b. A copy is created only when at least one object is created from that class c.

A copy of the static member is created for each instntiation of the class d. No memory is allocated for static members of a class. Which looping process checks the test condition at the end of the loop? Private b. Public c. Protected d. Needs to be assigned. Namespaces refer to the memory space allocated for names used in a program b. Namespaces refer to space between the names in a program c. Namespaces refer to packing structure of classes in a program.

Namespaces provide facilities for organizing the names in aprogram to avoid name clashes. Namespaces refer to space between teh names in a program c. Namespaces refer to space between the names in a program d. Exception Handling b. Reflection c. Operator Overloading d. Polymorphic inheritance b. Multilevel inheritance c. Hierarchical inheritance d.

Multiple inheritance. C language b. Java Language c. C language d. By making all the methods pure virtual in a class b. How do we declare an abstract class? Which of the following is not an advantage of secondary memory a. It is cost-effective b. It has large storage capacity c. It has highest speed d.

It is easily portable. What happens when a pointer is deleted twice? It can abort the program b. It can cause a failure c. It can cause an error d.

It can cause a trap. C protected d. Value of i assigned to C and then i incremented by 1 b. Value of i assigned to C d. In C language, a hexadecimal number is represented by writing a. Which of the following library function below by default aborts the program? Terminate b. Abort d. If a member needs to have unique value for all the objects of that same class, declare the member as a. Global variable outside class b. Local variable inside constructor c.

Static variable inside class d. Dynamic variable inside class. Which of the following below can perform conversions between pointers to related classes? How do we define a constructor?

Vtables a. When class B is inherited from class A, what is the order in which the constructers of those classes are called a. In mulit-list organization a.

Private a. Records that have equivalent value for a given secondary index b. Public item are linked together to form a list. Records are loaded in ordered sequence defined by collating c. Protected sequence by content of the key d. Needs to be assigned c. Records are directly accessed by record key field d.

Namespaces refer to the memory space allocated for names used partitioned structure: in a program a. Simultaneous read operations can be overlapped b. Namespaces refer to space between the names in a program b. Search time is reduced c. Namespaces refer to packing structure of classes in a program. Namespaces provide facilities for organizing the names in d. None of the above aprogram to avoid name clashes. Namespaces refer to the memory space allocated for names used d. None of the above in a program b.

Namespaces refer to space between teh names in a program The conditional compilation c. Namespaces refer to space between the names in a program a. It is taken care of by the compiler d. It is setting the compiler option conditionally program to avoid name clashes c.

It is compiling a program based on a condition d. Exception Handling Reflection a. System programming language c. Operator Overloading b.

General purpose language d. Namespaces c. Data processing language d. An inverted file a. Polymorphic inheritance a. Locates information about data in small files that are maintained b. Multilevel inheritance apart from actual data record c. Hierarchical inheritance b. A file which stores opposite records d. Multiple inheritance c.

A file which stores information about records of a system d. C language Which of the following is not a file operation: a. Repositioning b. Java Language b. Truncating c. C language c. Appending d. Which of the following below can perform conversions between a. By making all the methods pure virtual in a class pointers to related classes?

How do we define a constructor? How do we declare an abstract class? By providing at least one pure virtual method function signature b. By declaring at least one method abstract using the keyword d.

Vtables d. Which of the following is not an advantage of secondary c. It is cost-effective b. It has large storage capacity When class B is inherited from class A, what is the order in c. It has highest speed which the constructers of those classes are called d. It is easily portable a. Class A first Class B next b. Class B first Class A next c.

Class B's only as it is the child class What happens when a pointer is deleted twice? Class A's only as it is the parent class a. It can abort the program b. It can cause a failure Programming With. The fundamentals of problem solving and programming are the same regardless of which programming language you use. Multiple-Choice or Short-Answer questions. Correct programming errors.

Total Questions: Download PDF. Ethernet Topology MCQ. This paper covers C language invention history, standards and usages.



0コメント

  • 1000 / 1000