Computer Science - Study24x7
Social learning Network

Warning: include(./views/auth.php): failed to open stream: Permission denied in /var/www/html/live/loginRightSlider.php on line 18

Warning: include(): Failed opening './views/auth.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/live/loginRightSlider.php on line 18
computersciencequestions Cover image
computersciencequestions
Computer Science

  • Warning: Use of undefined constant Followers - assumed 'Followers' (this will throw an Error in a future version of PHP) in /var/www/html/live/makepage.php on line 1760
    Followers
  • Latest Feeds
  • Articles
  • Question
  • Course
  • About
  • Review
Interests
Computer Science

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
8 followers study24x7 27 Feb 2026 11:54 AM study24x7 study24x7

Paying attention to the important properties while ignoring inessential details is known as______.

A

selectiveness

B

polymorphism

C

abstraction

D

summarizing

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
8 followers study24x7 27 Feb 2026 11:52 AM study24x7 study24x7

The best form of coupling is _____

A

complete

B

tight

C

loose

D

free

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
8 followers study24x7 27 Feb 2026 11:51 AM study24x7 study24x7

When you pass a variable _____, C++ passes only the contents of the variable to the receiving function

A

by reference

B

by value

C

globally

D

locally

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
8 followers study24x7 26 Feb 2026 01:12 PM study24x7 study24x7

Which of the following statements allows the user to enter data at the keyboard?

A

cin << currentPay;

B

cin >> currentPay;

C

cout << currentPay;

D

cout >> currentPay;

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
8 followers study24x7 26 Feb 2026 01:11 PM study24x7 study24x7

The type to be used in an instantiation of a class template follows ________

A

the generic class name

B

the keyword template

C

the keyword class

D

the template definition

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
8 followers study24x7 26 Feb 2026 01:11 PM study24x7 study24x7

The step-by-step instructions that solve a problem are called _____

A

an algorithm

B

a list

C

a plan

D

a sequential structure

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
8 followers study24x7 25 Feb 2026 11:19 AM study24x7 study24x7

If you create an instantiation of a class template with an int, and then create a second instantiation with a double, then

A

you must precede each function call with the word int or double

B

once a function is used as one type, it becomes unavailable for use with the other type

C

there is no difference in the procedure to call a member function

D

you cannot perform this operation in C++

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
8 followers study24x7 25 Feb 2026 11:17 AM study24x7 study24x7

A function that is called automatically each time an object is destroyed is a

A

constructor

B

destructor

C

destroyer

D

terminator

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
8 followers study24x7 25 Feb 2026 11:14 AM study24x7 study24x7

When a child class function is called, the compiler looks first for a matching function name in the _____

A

class of the object using the function name

B

immediate ancestor class

C

base class

D

descendant class

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
8 followers study24x7 24 Feb 2026 11:33 AM study24x7 study24x7

When a child class function is called, the compiler looks first for a matching function name in the _____

A

class of the object using the function name

B

immediate ancestor class

C

base class

D

descendant class

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
8 followers study24x7 24 Feb 2026 11:29 AM study24x7 study24x7

The generic type in a template function

A

must be T

B

can be T

C

cannot be T for functions you create, but may be for C++'s built-in functions

D

cannot be T

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
8 followers study24x7 24 Feb 2026 11:28 AM study24x7 study24x7

Which of the following statements is false?

A

A function is a block of code that performs a specific task

B

Functions allow programmers to break large and complex problems into small and manageable tasks

C

Functions allow programmers to use existing code to perform common tasks

D

Functions can be called, or invoked, only once in a program

study24x7
Write a comment
8 followers study24x7 23 Feb 2026 01:08 PM study24x7 study24x7

The #ifndef directive tests to see whether ________

A

a class has been defined

B

a variable has been given a value

C

a class has no variable definitions

D

any objects of the class have been instantiated

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
8 followers study24x7 23 Feb 2026 12:55 PM study24x7 study24x7

Header files often have the file extension _____

A

.H

B

.HE

C

.HEA

D

.HEAD

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
8 followers study24x7 23 Feb 2026 12:54 PM study24x7 study24x7

If container classes are carefully constructed, then these tools are available to work with structures that are not ______

A

valid without container classes

B

programmer-defined

C

type-specific

D

public

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
8 followers study24x7 20 Feb 2026 11:36 AM study24x7 study24x7

The keyword used to define a structure is _____

A

stru

B

stt

C

struct

D

structure

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
8 followers study24x7 20 Feb 2026 11:36 AM study24x7 study24x7

A function that returns no values to the program that calls it is _____

A

not allowed in C++

B

type void

C

type empty

D

type barren

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
8 followers study24x7 20 Feb 2026 11:35 AM study24x7 study24x7

To be called object-oriented, a programming language must allow

A

functions that return only a single value

B

#include files

C

inheritance

D

All of the above

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
8 followers study24x7 19 Feb 2026 11:51 AM study24x7 study24x7

The newline character is always included between

A

pair of parentheses

B

pair of curly braces

C

control string

D

None of the above

study24x7
Write a comment

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/makepost.php on line 52
8 followers study24x7 19 Feb 2026 11:42 AM study24x7 study24x7

Which type of statement does not occur in computer programs?

A

sequence

B

loop

C

denial

D

selection

study24x7
Write a comment
Ratings
0.0
out of 5
0 Ratings
5 study24x7
 
0.0
4 study24x7
 
0.0
3 study24x7
 
0.0
2 study24x7
 
0.0
1 study24x7
 
0.0
Related Pages