Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1.1 Which one of the following is not correct? a. A function can return a value of type array. b. A function can return a

1.1 Which one of the following is not correct? a. A function can return a value of type array. b. A function can return a value of type struct. c. A function can return a value of type enumt. d. A function can return a value of type class. e. A function can return a value of type function

1.2 Given struct programmingCourses. c is a variable of type programmingCourses, and cTest is a member of programmingCourse Which one of the following is not correct a. Members of programmingCourses are accessed using dot(.) b. c.cTest can access cTest c. c.cTest is a variable d. c.cTest can be manipulated like any other variable e. arithmetic and relational operations are allowed on programmingCourses

1.3 An accessor function is a a. member function that only accesses the value(s) of member variable(s) b. Member function that cannot modify member variables of that class c. Member function heading with const at the end d. member function that modifies the value(s) of member variable(s) e. not a member function 1.4 Which of the following statement is not true about a constructor? a. Use constructors to guarantee that member variables of a class are initialized b. A constructor parameters is a default constructor c. A constructor has no type d. A constructor can have parameters e. Name of a constructor cannot be the same as the name of the class 1.5 A destructor a. Is a functions without any type b. Cannot execute automatically when the class object goes out of scope c. Can only be one in a class d. Has no parameters e. Is named, for example as ~className();

1.6 Which one of the following is not correct about Abstract data type (ADT) a. Cannot separate logical properties from implementation details b. Is identified by its name c. Has a domain where the set of values belonging d. Is data type that separates the logical properties from the implementation details e. Has a set of operations that can operate on the data 1.7 Which of the following statements is true? a. The member variables of a class must be of the same type b. The member functions of a class must be public c. A class can have more than one constructor d. Both constructors and destructors can have parameters. e. A class can have more than one destructor.

1.8 Which one is not correct about unified Modeling Language a. graphically describe a function b. graphically describe its members c. The +: denotes a member is public d. The -: denotes a member is private e. The #: denotes a member is protected 1.9 Which of the following is not true about struct? a. is a collection of a fixed number of components b. Components of a struct can be of different types c. struct is a reserved word d. memory is allocated for a struct e. components of a struct can be accessed by name

1.10 Which of the following is not correct about an enumerator type a. An enumeration type cannot be input/output directly b. Enumeration types can be passed as parameters to functions c. You can declare variables of an enumeration type when you define an enumeration type d. An enumeration type is an ordered set of values e. An enumeration type cannot be used in a loop

c++ question

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Database Programming With Visual C# .NET

Authors: Ying Bai

1st Edition

0470467274, 978-0470467275

More Books

Students also viewed these Databases questions

Question

How do you certify test data?

Answered: 1 week ago