Home C C++ Java Python Perl PHP SQL JavaScript Linux Selenium QT Online Test

Home » C » C Objective Questions And Answers (Page-9)

C Objective Questions And Answers - 195

Page 9 of 10 (161- 180)


Question: 161

(A) 2 2 3 1
(B) 2 2 3 0
(C) 3 2 3 0
(D) 1 1 2 1

Compiler
Level: Expert Category: operators
[Posted by: Admin | Chicago, USA]



Question: 162

(A) Generates an error message
(B) Extra values are being ignored
(C) Size of Array is increased
(D) Size is neglected when values are given

Compiler
Level: Beginner Category: arrays
[Posted by: Admin | Chicago, USA]



Question: 163

(A) character
(B) integer
(C) Unsigned character
(D) All of these

Compiler
Level: Beginner Category: pointers
[Posted by: Admin | Chicago, USA]



Question: 164

(A) Allocated memory has undefined value
(B) It returns pointer to the allocated space
(C) Pointer is NULL if memory is not allcoated
(D) It doesn't lead to memory leak if memory is not de allocated

Compiler
Level: Beginner Category: malloc_free
[Posted by: Admin | Chicago, USA]



Question: 165

(A) ptr is not a pointer
(B) ptr is a pointer to pointer
(C) Such statement no allowed in C
(D) None of these

Compiler
Level: Beginner Category: pointers
[Posted by: Admin | Chicago, USA]



Question: 166

(A) 2
(B) 4
(C) 8
(D) 0

Compiler
Level: Beginner Category: pointers
[Posted by: Admin | Chicago, USA]



Question: 167

(A) 3
(B) 15
(C) 16
(D) Compilation error

Compiler
Level: Beginner Category: loops
[Posted by: Hemendra P | Ballabhgarh]



Question: 168

(A) 0
(B) 1
(C) 2
(D) 4

Compiler
Level: Practionar Category: structure
[Posted by: Admin | Chicago, USA]



Question: 169

(A) Compilation Error
(B) 0
(C) 1
(D) 2

Compiler
Level: Practionar Category: structure
[Posted by: Admin | Chicago, USA]



Question: 170

(A) True
(B) False

Compiler
Level: Beginner Category: malloc_free
[Posted by: Admin | Chicago, USA]



Question: 171

(A) 999
(B) 10
(C) 0
(D) Segmentation fault

Compiler
Level: Expert Category: malloc_free
[Posted by: Admin | Chicago, USA]



Question: 172

(A) NULL
(B) cppbuzz
(C) Nothing is printed
(D) Typecasting Error

Compiler
Level: Expert Category: malloc_free
[Posted by: Admin | Chicago, USA]



Question: 173

(A) Program runs smoothly
(B) Compilation Error
(C) Runtime Error- Program crashes

Compiler
Level: Expert Category: malloc_free
[Posted by: Admin | Chicago, USA]



Question: 174

(A) True
(B) False

Compiler
Level: Practionar Category: malloc_free
[Posted by: Admin | Chicago, USA]



Question: 175

(A) Program runs smoothly & nothing is printed
(B) Runtime Error : Crash
(C) Compilation Error
(D) None of these

Compiler
Level: Practionar Category: malloc_free
[Posted by: Admin | Chicago, USA]



Question: 176

(A) Program runs smoothly
(B) Compilation Error
(C) Program runs smoothly but has memory leak
(D) Runtime Error : Crash

Compiler
Level: Practionar Category: malloc_free
[Posted by: Admin | Chicago, USA]



Question: 177

(A) Compilation Error
(B) Runtime Error: Crash
(C) Program runs smoothly but has memory leak
(D) Program runs smoothly & nothing is printed

Compiler
Level: Practionar Category: malloc_free
[Posted by: Admin | Chicago, USA]



Question: 178

(A) _ptr is NULL 0x21f3010 @
(B) _ptr not NULL 0x21f3010 @
(C) Runtime Error: Segmentation Fault
(D) _ptr not NULL 0x21f3010

Compiler
Level: Expert Category: malloc_free
[Posted by: Admin | Chicago, USA]



Question: 179

(A) 1
(B) 3
(C) 4
(D) 12

Compiler
Level: Beginner Category: enum
[Posted by: Admin | Chicago, USA]



Question: 180

(A) Enum can contain enum but duplicate contestants are not allowed
(B) Enum can't contain enum
(C) Enum can contain enum but not accessible
(D) This code will produce compilation error

Compiler
Level: Beginner Category: enum
[Posted by: Admin | Chicago, USA]