MCQOPTIONS
Saved Bookmarks
This section includes 174 Mcqs, each offering curated multiple-choice questions to sharpen your C Programming knowledge and support exam preparation. Choose a topic below to get started.
| 101. |
What is the default format for “Datetime” data type? |
| A. | YYYY-MM-DD HH:MI:SS |
| B. | MM-YYYY-DD HH:MI:SS |
| C. | DD-YYYY-MM MI:HH:SS |
| D. | None of the mentioned |
| Answer» B. MM-YYYY-DD HH:MI:SS | |
| 102. |
Which of the following is the correct order of precedence (high to low)? |
| A. | !, ^, <<, XOR |
| B. | ^, !, <<, XOR |
| C. | !, <<, XOR, ^ |
| D. | !, ^, XOR, << |
| Answer» B. ^, !, <<, XOR | |
| 103. |
Which spatial datatype is used to store a curve? |
| A. | GEOMETRY |
| B. | POINT |
| C. | LINESTRING |
| D. | POLYGON |
| Answer» D. POLYGON | |
| 104. |
Which datatype is used for a fixed length binary string? |
| A. | VARCHAR |
| B. | BINARY |
| C. | VARBINARY |
| D. | BLOB |
| Answer» C. VARBINARY | |
| 105. |
The facility that allows nesting one select statement into another is ______________ |
| A. | nesting |
| B. | binding |
| C. | subquerying |
| D. | encapsulating |
| Answer» D. encapsulating | |
| 106. |
The NUL (‘\0’) is same as the SQL NULL value. |
| A. | True |
| B. | False |
| C. | May be True or False |
| D. | Can't say |
| Answer» C. May be True or False | |
| 107. |
Which character set variable indicates the character set used for storing identifiers? |
| A. | character_set_system |
| B. | character_set_server |
| C. | collation_server |
| D. | character_set_database |
| Answer» B. character_set_server | |
| 108. |
To measure the length of a string in bytes, the operator used is __________ |
| A. | CHAR_LENGTH() |
| B. | LENGTH() |
| C. | LEN() |
| D. | SIZE() |
| Answer» C. LEN() | |
| 109. |
What is used to produce a new string from an old string in the desired character set? |
| A. | Introducers |
| B. | CONVERT() |
| C. | CONVERTER() |
| D. | CONVERTS() |
| Answer» C. CONVERTER() | |
| 110. |
X’61626364′ and X’61626364′ are respectively __________ |
| A. | abcd and 1633837924 |
| B. | abcd and 4297383361 |
| C. | dcba and 1633837924 |
| D. | dcba and 4297383361 |
| Answer» B. abcd and 4297383361 | |
| 111. |
x’ffff’ in decimal is ___________ |
| A. | 65534 |
| B. | 66535 |
| C. | 65536 |
| D. | 65537 |
| Answer» D. 65537 | |
| 112. |
Which declaration represents that “character data will consume the same number of bytes as declared and is right padded”? |
| A. | Char |
| B. | Varchar |
| C. | Both Char and Varchar |
| D. | None of the mentioned |
| Answer» B. Varchar | |
| 113. |
Character data can be stored as ______________ |
| A. | Fixed length string |
| B. | Variable length string |
| C. | Either Fixed or Variable length string |
| D. | None of the mentioned |
| Answer» D. None of the mentioned | |
| 114. |
Which among the following have the maximum bytes? |
| A. | Varchar |
| B. | Char |
| C. | Text type |
| D. | Both Varchar and Char |
| Answer» D. Both Varchar and Char | |
| 115. |
In oracle database variable length column is declared by ____________ |
| A. | Varchar |
| B. | Varchar 3 |
| C. | Varchar2 |
| D. | None of the mentioned |
| Answer» D. None of the mentioned | |
| 116. |
Which “text type” has the maximum number of bytes? |
| A. | Tiny text |
| B. | Text |
| C. | Medium text |
| D. | Long text |
| Answer» E. | |
| 117. |
Mysql support different character sets, which command is used to display all character sets? |
| A. | SHOW CHARACTER SET; |
| B. | SHOW; |
| C. | CHARACTER SET; |
| D. | None of the mentioned |
| Answer» B. SHOW; | |
| 118. |
The maximum length of the varchar columns is ____________ |
| A. | Upto 65, 535 bytes |
| B. | Upto 256 bytes |
| C. | Upto 65, 567 bytes |
| D. | None of the mentioned |
| Answer» B. Upto 256 bytes | |
| 119. |
The maximum length of the char columns is ____________ |
| A. | 255 bytes |
| B. | 65, 535 bytes |
| C. | 256 bytes |
| D. | None of the mentioned |
| Answer» B. 65, 535 bytes | |
| 120. |
Which declaration doesn’t use the same number of bytes and consumption of bytes depends on the input data? |
| A. | Varchar |
| B. | Char |
| C. | Both Varchar and Char |
| D. | None of the mentioned |
| Answer» B. Char | |
| 121. |
Which of the following cannot be a variable? |
| A. | __init__ |
| B. | in |
| C. | it |
| D. | on |
| Answer» C. it | |
| 122. |
Which is the correct operator for power(x^y)? |
| A. | X^y |
| B. | X**y |
| C. | X^^y |
| D. | None of the mentioned |
| Answer» C. X^^y | |
| 123. |
A BIT value in a result set is displayed as a binary string. |
| A. | True |
| B. | False |
| C. | May be True or False |
| D. | Can't say |
| Answer» B. False | |
| 124. |
Numbers prefixed with ‘0x’ are in base __________ |
| A. | 8 |
| B. | 16 |
| C. | 32 |
| D. | 64 |
| Answer» C. 32 | |
| 125. |
If ANSI_QUOTES is enabled, MySQL treats the double quotes as ________________ |
| A. | identifier-quoting character |
| B. | string-quoting character |
| C. | hexadecimal |
| D. | string |
| Answer» B. string-quoting character | |
| 126. |
‘2341’ is a ____________ |
| A. | integer |
| B. | floating point |
| C. | hexadecimal |
| D. | string |
| Answer» E. | |
| 127. |
An ADT is defined to be a mathematical model of a user-defined type along with the collection of all ____________ operations on that model. |
| A. | Cardinality |
| B. | Assignment |
| C. | Primitive |
| D. | Structured |
| Answer» D. Structured | |
| 128. |
Type data abstraction which allows conceptual representation of data in database management system is considered as |
| A. | logical design model |
| B. | data model |
| C. | interface model |
| D. | user friendly model |
| Answer» C. interface model | |
| 129. |
Considering abstraction concepts, process of assigning similar entities to similar entity types systematically is called |
| A. | classification |
| B. | instantiation |
| C. | identification |
| D. | exception abstract |
| Answer» B. instantiation | |
| 130. |
Identification, aggregation and instantiation are abstraction concepts used in |
| A. | intension and extension models |
| B. | classes and nodes models |
| C. | concrete models |
| D. | semantic data models |
| Answer» E. | |
| 131. |
For implementation of PR quadtree data structure, design pattern to use is |
| A. | Visitor |
| B. | Flyweights |
| C. | Composite |
| D. | Compound |
| Answer» C. Composite | |
| 132. |
To deal with relationship between a collection of actions and a hierarchy of object types, approaches are of |
| A. | 2 types |
| B. | 3 types |
| C. | 4 types |
| D. | 5 types |
| Answer» B. 3 types | |
| 133. |
Generalization of important design concepts for a recurring problem is done through a |
| A. | Design Pattern |
| B. | Members |
| C. | Design component |
| D. | Software component |
| Answer» B. Members | |
| 134. |
A structure for a design solution is described by |
| A. | Classes |
| B. | Design patterns |
| C. | Parameters |
| D. | Design members |
| Answer» C. Parameters | |
| 135. |
Techniques that are used to combine various software components are referred to as |
| A. | Design members |
| B. | Design Patterns |
| C. | Physical design member |
| D. | Logical design member |
| Answer» C. Physical design member | |
| 136. |
Maintaining an efficient communication between programmers is job done by |
| A. | Programmers itself |
| B. | Integration team |
| C. | Communication team |
| D. | Design patterns |
| Answer» E. | |
| 137. |
Which if the following is/are the levels of implementation of data structure |
| A. | Abstract level |
| B. | Application level |
| C. | Implementation level |
| D. | All of the above |
| Answer» E. | |
| 138. |
Process of abstraction in which objects and classes are identified with some kind of identifier is classified as |
| A. | classification |
| B. | instantiation |
| C. | identification |
| D. | exception abstract |
| Answer» D. exception abstract | |
| 139. |
Data type is the classification of pieces of information in a____________. |
| A. | Linker |
| B. | Code |
| C. | Program |
| D. | None of the above |
| Answer» D. None of the above | |
| 140. |
Implementation of identical nodes of a PR quadtree can be done through pattern |
| A. | Flyweights |
| B. | Composite |
| C. | Compound |
| D. | Visitor |
| Answer» B. Composite | |
| 141. |
Theoretical computer science refers to the collection of such topics that focus onthe__________, as well as mathematical aspects of computing. |
| A. | Abstract |
| B. | Logical |
| C. | Both (a) and (b) |
| D. | None of the above |
| Answer» D. None of the above | |
| 142. |
A dynamic data structure is one in which the memory for elements is allocated dynamically at runtime. Is this statement True or False? |
| A. | True |
| B. | False |
| C. | May be |
| D. | Partially true and partially false |
| Answer» B. False | |
| 143. |
Identical nodes of a PR quadtree can be implemented by flyweight for |
| A. | Efficient execution |
| B. | Efficient implementation |
| C. | Efficient memory |
| D. | Efficient compile time |
| Answer» D. Efficient compile time | |
| 144. |
Representation of data structure in memory is known as: |
| A. | recursive |
| B. | abstract data type |
| C. | storage structure |
| D. | file structure |
| Answer» C. storage structure | |
| 145. |
Operations on a data structure may be ….. |
| A. | creation |
| B. | destruction |
| C. | selection |
| D. | all of the above |
| Answer» E. | |
| 146. |
Which of the following are the operations applicable an primitive data structures? |
| A. | create |
| B. | destroy |
| C. | update |
| D. | all of the above |
| Answer» E. | |
| 147. |
Which of the following data structure is non-linear type? |
| A. | Strings |
| B. | Lists |
| C. | Stacks |
| D. | Tree |
| Answer» E. | |
| 148. |
Which of the following is true about the characteristics of abstract data types?i) It exports a type.ii) It exports a set of operations. |
| A. | True, False |
| B. | False, True |
| C. | True, True |
| D. | False, False |
| Answer» D. False, False | |
| 149. |
Which of the following data structures are indexed structures? |
| A. | Linear arrays |
| B. | Linked lists |
| C. | Queue |
| D. | Stack |
| Answer» B. Linked lists | |
| 150. |
Which of the following data structure can't store the non-homogeneous data elements? |
| A. | Arrays |
| B. | Records |
| C. | Pointers |
| D. | None of the above |
| Answer» B. Records | |