C Objective Questions Page 9 of 10

Home » C » C Questions
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

C Compiler IDE
Level: Expert Category: operators


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

C Compiler IDE
Level: Beginner Category: arrays


Question: 163

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

C Compiler IDE
Level: Beginner Category: pointers


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

C Compiler IDE
Level: Beginner Category: malloc_free


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

C Compiler IDE
Level: Beginner Category: pointers


Question: 166

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

C Compiler IDE
Level: Beginner Category: pointers


Question: 167

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

C Compiler IDE
Level: Beginner Category: loops


Question: 168

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

C Compiler IDE
Level: Practionar Category: structure


Question: 169

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

C Compiler IDE
Level: Practionar Category: structure


Question: 170

(A) True
(B) False

C Compiler IDE
Level: Beginner Category: malloc_free


Question: 171

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

C Compiler IDE
Level: Expert Category: malloc_free


Question: 172

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

C Compiler IDE
Level: Expert Category: malloc_free


Question: 173

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

C Compiler IDE
Level: Expert Category: malloc_free


Question: 174

(A) True
(B) False

C Compiler IDE
Level: Practionar Category: malloc_free


Question: 175

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

C Compiler IDE
Level: Practionar Category: malloc_free


Question: 176

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

C Compiler IDE
Level: Practionar Category: malloc_free


Question: 177

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

C Compiler IDE
Level: Practionar Category: malloc_free


Question: 178

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

C Compiler IDE
Level: Expert Category: malloc_free


Question: 179

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

C Compiler IDE
Level: Beginner Category: enum


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

C Compiler IDE
Level: Beginner Category: enum

C Programming Test
Compile C code here

Browse C Categories

Preprocessor Assembler Compilation Datatypes Arrays Variables Pointers Functions Loops Switch Structures Union Enum Goto & Labels Storage Classes Malloc & free Macros Conditional Operators File Handling gcc Others

Switch to C++ Questions

MCQs

About Us | Contact Us | Privacy Policy | Career  | Online Training
Youtube   LinkedIn   Facebook   Twitter   Instagram  
Copyright©CppBuzz.com
Like many websites, we use cookies to ensure best browsing experience on our website. While using this website, you acknowledge to have read and accepted our cookie and privacy policy.