Basic Programming Software Online Test – Set 20

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. “C++” is a _ constant

(A) Character literal
(B) Named literal
(C) Numeric literal
(D) String literal

Answer: (D) String literal


Q2. A normal C++ operator that acts in special ways on newly defined data types is said to be

(A) Glorified
(B) Encapsulated
(C) Classified
(D) Overloaded

Answer: (D) Overloaded


Q3. When an argument is passed by reference,

(A) A variable is created in the function to hold the argument’s value
(B) The function cannot access the argument’s value
(C) A temporary variable is created in the calling program to hold the argument’s value
(D) The function accesses the argument’s original value in the calling program

Answer: (D) The function accesses the argument’s original value in the calling program


Q4. If you declare two objects as Customer firstCust, secondCust; which of the following must be true?

(A) Each object’s nonstatic data members will be stored in the same memory location
(B) Each object will be stored in the same memory location
(C) Each object will have a unique memory address
(D) You cannot declare two objects of the same class

Answer:(C) Each object will have a unique memory address


Q5. Errors in a program are called

(A) Accidents
(B) Annoyances
(C) Bugs
(D) Mistakes

Answer: (C) Bugs


Q6. Which of the following type casts will convert an Integer variable named amount to a Double type?

(A) (double) amount
(B) (int to double) amount
(C) int to double(amount)
(D) int (amount) to double

Answer: (A) (double) amount


Q7. In the expression p –> val,p is a(n)

(A) Address
(B) Pointer
(C) Structure
(D) Header

Answer: (B) Pointer


Q8. Which of the following flowchart symbols represents the if selection structure?

(A) Diamond
(B) Hexagon
(C) Oval
(D) Parallelogram

Answer: (A) Diamond


Q9. Which of the following statements will create and initialize a feelnfo array named fee?

(A) fee feeInfo = {{0}, {0}};
(B) fee as feeInfo = 0, 0;
(C) feeInfo fee = 0, 0;
(D) feeInfo fee = {0,0};

Answer: (D) feeInfo fee = {0,0};


Q10. A(n) _ is a numeric variable used for counting something

(A) Accumulator
(B) Adder
(C) Constant
(D) Counter

Answer: (D) Counter


Q11. Assume you want to compare the character stored in the initial variable to the letter a. Which of the following conditions should you use in the if statement? (Be sure the condition will handle a or A).

(A) (initial = ‘a’ or ‘A’)
(B) (initial == ‘a’ or ‘A’)
(C) (toupper(initial) = ‘A’)
(D) (toupper(initial) == ‘A’)

Answer: (D) (toupper(initial) == ‘A’)


Q12. A class hierarchy

(A) Describes “is a kind of” relationships
(B) Describes “has a” relationships
(C) Shows the same relationships as an organization chart
(D) Shows the same relationships as a family tree

Answer: (A) Describes “is a kind of” relationships


Q13. Which is true?

(A) Coincidental cohesion is stronger than procedural cohesion
(B) Logical cohesion is stronger than coincidental cohesion
(C) Sequential cohesion is weaker than temporal cohesion
(D) The weakest cohesion is functional

Answer: (B) Logical cohesion is stronger than coincidental cohesion


Q14. Which of the following creates an animal object named dog?

(A) Animal “dog”;
(B) Animal dog;
(C) Dog “animal”;
(D) Dog animal;

Answer: (B) Animal dog;


Q15. The operator that releases previously allocated memory is __

(A) Release
(B) Return
(C) Delete
(D) Destroy

Answer: (C) Delete


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