C Programming Tutorial pdf Online Test – Set 13

Are you guys looking for Computer science Engineering MCQ Questions with Answers PDF Free Download as per Computer science Engineering new exam pattern? You came to the right page. This may assist you to understand and check your knowledge about the Subjects. Students also can take a free test of the Multiple Choice Questions of Computer science Engineering. Each question has four options followed by the right answer. These Computer science Engineering MCQ Questions are selected supported by the newest exam pattern.


Q1. The statement double total = 0.0; performs __

(A) Assignment
(B) Initialization
(C) Rationalization
(D) Polymorphism

Answer:(B) Initialization


Q2. In C++, class definitions are most often

(A) Stored with each program that uses them
(B) Stored in a header file that is included in the programs that use them
(C) Stored in a folder that you paste into every new project
(D) Retyped for every new project

Answer: (B) Stored in a header file that is included in the programs that use them


Q3. Reference variables and const class member

(A) Must be assigned values in any derived class
(B) Must never be initialized in a base class
(C) Must be initialized, rather than assigned values
(D) Must not exit if a class is to be a base class

Answer:(C) Must be initialized, rather than assigned values


Q4. The actual arguments cannot he

(A) A constant or a variable
(B) Of a different type from the corresponding formal arguments
(C) Other functions
(D) Expressions

Answer: (B) Of a different type from the corresponding formal arguments


Q5. A translator that notes whether you have used a language correctly may be called a _

(A) Theasurus
(B) Compiler
(C) Coder
(D) Decoder

Answer: (B) Compiler


Q6. The scope resolution operator is

(A) A comma
(B) A semicolon
(C) A colon
(D) Two colons

Answer:(D) Two colons


Q7. You separate a derived class name from its access specifier with

(A) A colon
(B) Two colons
(C) At least one space
(D) A semicolon

Answer: (C) At least one space


Q8. The items listed in the function header are called _

(A) Actual arguments
(B) Formal parameters
(C) Passed parameters
(D) Sent arguments

Answer: (B) Formal parameters


Q9. The highest level of cohesion is

(A) Functional cohesion
(B) Temporal cohesion
(C) Logical cohesion
(D) Sequential cohesion

Answer: (A) Functional cohesion


Q10. You define a structure type globally because

(A) You save many lines of code by not rewriting an identical structure definition in each function that uses it
(B) You will never change its definition
(C) It is required in C++
(D) All of the above

Answer: (A) You save many lines of code by not rewriting an identical structure definition in each function that uses it


Q11. You indicate a variable is a pointer variable by placing a(n) _ in front of the variable’s name

(A) Asterisk
(B) Ampersand
(C) Dollar sign
(D) Exclamation point

Answer: (A) Asterisk


Q12. Which of the following, if any, are valid names for variables?

(A) Class
(B) Friend
(C) Void
(D) None of the above are valid names for variables

Answer:(D) None of the above are valid names for variables


Q13. Variables that are known only to the function in which they are declared are called _ variables

(A) Global
(B) Local
(C) Main
(D) Separate

Answer: (B) Local


Q14. Which of the following creates a String named constant called partNo, whose value is AB45?

(A) const char[4] partNo = “AB45”;
(B) const char[5] partNo = ‘AB45’;
(C) const char[5] partNo = “AB45”;
(D) const char partNo[5] = “AB45”;

Answer: (D) const char partNo[5] = “AB45”;


Q15. Which of the following is false?

(A) A void function’s header begins with the keyword void
(B) A value-returning function’s header begins with a data type, which represents the type of data the function will return
(C) Assuming displayAge is the name of a void function, displayAge(); is a both logically and syntactically valid C++ statement
(D) Assuming calcNewPrice is the name of a value-returning function, calcNewPriceO; is a both logically and syntactically valid C++ statement

Answer: (D) Assuming calcNewPrice is the name of a value-returning function, calcNewPriceO; is a both logically and syntactically valid C++ statement


We hope the given Computer science Engineering MCQ Questions with Answers will definitely yield fruitful results. Hope you got enough ideas on the MCQs on Computer science Engineering. If you have any queries related toComputer science Engineering MCQs Multiple Choice Questions with Answers, drop your questions below and will get back to you in no time.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top