stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
basic of C++ & c Flashcards | StudBud
Explore
/
basic of C++ & c
basic of C++ & c
75 terms
·
StudBud Administration
·
1,020 plays
Answer all the questions
Flashcards
75 cards
F
Practice quiz
P
Host live
L
Questions
75
Answers
1
These are all basic features of OOPs except
Ability
Abstraction
Polymorphism
Inheritance
2
What happens if a class does not have a name?
It will not have a constructor
It will neither have a constructor or destructor
It will not have a destructor
It is not allowed
3
Which of the following is a valid floating-point literal?
F287.333
f287.333
287.e2
2.87E+04
4
Recent research regarding employer expectations suggest that employees lack basic "non-cognitive" or "____________."
Employability skills
Social skills
A brain
Common Sense
5
How many minimum number of functions should be present in a C++ program for its execution?
0
3
2
1
6
Which of the following feature is used in function overloading and function with default argument?
Abstraction
Modularity
Encapsulation
Polymorphism
7
Which concept allows you to reuse the written code?
Encapsulation
Abstraction
Inheritance
Polymorphism
8
Which of the following cannot be used with the keyword virtual
destructor
constructor
member functions
class
9
Which of the following is called address operator?
*
&
%
_
10
How many types of representation are in the string?
3
2
1
4
11
Which of the following operator is overloaded for object cout
Empty choice
=
>>
+
12
Which is more effective while calling the functions?
call by object
call by value
call by pointer
call by reference
13
Which members are inherited but are not accessible in any case?
Protected
Public
private and protected
Private
14
What is the index number of the last element of an array with 9 elements?
9
0
Programmer-defined
8
15
Which of the following concepts means waiting until runtime to determine which function to call?
Data hiding
Dynamic binding
Dynamic loading
Dynamic casting
16
In Decimal system you can convert the binary number 1011011111000101 very easily
octal and decimal
yes
hexadecimal
octal
17
Which of the following concepts is used to implement late binding
Const function
Static function
Virtual function
Operator function
18
Which of the following concepts means determining at runtime what method to invoke?
Dynamic binding
Dynamic loading
Data hiding
Dynamic Typing
19
Which of the following cannot be friend?
Function
Operator function
Object
Class
20
cout is a/an
macro
object
operator
function
21
Which is correct with respect to the size of the data types?
char > int
char
int float
char
22
Which of the following concepts of OOPS means exposing only necessary information to client?
A.Encapsulation
B.Abstraction
C.Data hiding
D.Data binding
23
The conversion from basic data to class type can be done by .......
overloaded casting operator
object of a class
Writing constructor
Is not possible
24
Which of the following concepts means wrapping up of data and functions together?
A.Abstraction
B.Encapsulation
D.Polymorphism
C.Inheritance
25
How many instances of an abstract class can be created?
1
5
0
13
26
What is the other name of compile-time polymorphism?
Dynamic polymorphism
Non-executing polymorphism
Static polymorphism
Executing polymorphism
27
What is the other name of run-time polymorphism?
Non-executing polymorphism
Executing polymorphism
Static polymorphism
Dynamic polymorphism
28
_______are basic runtime entities in an object – oriented system.
object
classes and objects
none of the above
class
29
Which of the following is correct in C++?
Structure members are private by default
Structures can have member functions
Classes cannot have protected data members
Class members are public by default
30
oops concept allows compiler to insert arguments in a func call if not specified
default argument
call by pointer
call by reference
call by value
31
Which of the following concepts of OOPS means exposing only necessary information to client?
data hiding
encapsulation
abstraction
data binding
32
Which is used to return the number of characters in the string?
name
both a&b
size
length
33
What are important terms and concepts used in OOP?
Cascading
Insulation
Privacy
Constructor
34
Which of the following gives the memory address of the first element in array?
array;
array[1];
array[0];
array(2);
35
Which concepts does the Pre Increment use?
call by reference
queue
call by name
call by value
36
Which of the following correctly declares an array?
int array[10];
int array;
array{10};
array array[10];
37
All of the following Victorian Era concepts appeared in Great Expectations except...
Religion (Joe’s religious conflict/struggle)
Social class system (Pip’s rise)
Prison life (Magwitch’s escape and experience in Australia)
Education system (Pip’s and Joe’s educations)
38
Which of the following is called extraction/get from operator?
>
>>
Empty choice
Empty choice
39
All of the following Victorian Era concepts appear in Dracula except...
Social class system (Count Dracula’s position)
Industrialization (Johnathan Harker’s company)
Religion (crosses, wafers, and good vs. evil)
Role of women in society (Mina👍 vs. Lucy👎)
40
What does ‘\a’ escape code represent?
form feed
backslash
alert
tab
41
which of the following is used to terminate the function declaration?
]
;
)
:
42
Which of the following is not a type of inheritance?
Multiple
Hierarchical
Distributive
Multilevel
43
What is the header file for the string class?
#include
#include
#include
#include
44
Which of the following is an abstract data type
Class
int
double
string
45
Which of the following is not one of the sizes of the floating point types?
double
long double
short float
float
46
Which of the following is not a type of constructor?
Copy constructor
Parameterized constructor
Friend constructor
Default constructor
47
Which of the following is not the member of class?
Static function
Virtual function
Friend function
Const function
48
How access specifiers in Class helps in Abstraction?
Abstraction concept is not used in classes
They does not helps in any way
They help in keeping things together
They allows us to show only required things to outer world
49
Which of the following shows multiple inheritances?
A,B->C
A->B->C
A->B; A->C
B->A
50
Which of the following is correct?
A class is an instance of the data type that the class have
A class is an instance of its objects
An object is an instance of the data type of the class
An object is an instance of its class
51
Which of the following concepts means wrapping up of data and functions together?
polymorphism
inheritance
encapsulation
abstraction
52
Where does the execution of the program starts?
main function
void function
else function
user-defined function
53
Which of the following is a static polymorphism mechanism?
Operator overloading
Templates
All of the mentioned
Function overloading
54
Which of the following escape sequence represents tab?
\t
\b
\a
\t\r
55
In Object-Oriented system, the class is a basic unit. Therefore the localization is based on:
Objects
Polymorphism
Methods
Messages
56
Which of the following concepts of OOPS means exposing only necessary information to client?
Data binding
Data hiding
Encapsulation
Abstraction
57
Which of the following is correct?
C++ allows both static and dynamic type checking
C++ allows static member function to be of type const.
C++ allows static type checking
C++ allows dynamic type checking.
58
How many can max number of arguments present in function in the c99 compiler?
99
127
90
102
59
Java object oriented programming concepts is/are
polymorphism
Inheritance
All of the above.
Encapsulation
60
Which of the following is the correct syntax of including a user defined header files in C++?
#include [userdefined]
#include
#include
#include “userdefined”
61
Which of the following is used for comments in C++?
/* comment */
// comment */
// comment
both // comment or /* comment */
62
What does polymorphism in OOPs mean?
Concept of allowing overiding of functions
Concept of hiding data
Concept of wrapping things into a single unit
Concept of keeping things in differnt modules/files
63
An inline function is expanded during __
compile-time
end of program
never
run time
64
Who created C++?
Ken Thompson
Brian Kernighan
Bjarne Stroustrup
Dennis Ritchie
65
Which of the following accesses the seventh element stored in array?
array[6];
array[7];
array;
array(7);
66
How many types are there in increment/decrement operator?
3
4
2
1
67
Which of the following is not OOPS concept in Java?
Compilation
Polymorphism
Inheritance
Encapsulation
68
Which of the following type of class allows only one object of it to be created
Friend class
Virtual class
Singleton class
Abstract class
69
How many types of polymorphisms are supported by C++?
1
3
4
2
70
The value 132.54 can be represented using which data type?
int
bool
double
void
71
How many types of polymorphism are there?
3
4
1
2
72
Which of the following is the default return value of functions in C++?
void
int
char
float
73
Which data type is used to represent the absence of parameters?
void
int
short
float
74
Which of the following approach is adapted by C++
Right-left
Top-down
Left-right
Bottom-up
75
Identify the user-defined types from the following?
classes
int
enumeration
both enumeration and classes