C++ Multiple Choice Questions Page 14 of 14

Home » C++ » MCQ

Showing Page 14 (261 - 280)

Question: 261

(A) Hello Derived
(B) Hello Base
(C) Hello Derived Hello Base
(D) Error: not matching func to call ‘derived::derived(cppbuzz_base&)’

Compiler
Level: Practitioner Category: typecasting


Question: 262

(A) Both pointers hold same object
(B) They don't hold same object
(C) Compilation Error
(D) Exception occured

Compiler
Level: Practitioner Category: singleton


Question: 263

(A)
(B)
(C)
(D)

Compiler
Level: Practitioner Category: singleton


Question: 264

(A) error: cannot declare variable ‘obj’ to be of abstract type ‘cppbuzz’
(B) cppbuzz
(C) ~cppbuzz
(D) cppbuzz~cppbuzz

Compiler
Level: Practitioner Category: abstract_class


Question: 265

(A) 4
(B) 8
(C) 12
(D) 16

Compiler
Level: Expert Category: abstract_class


Question: 266

(A) True
(B) False

Compiler
Level: Practionar Category: virtual_func


Question: 267

(A) Compilation Error
(B) 10, 20
(C) 10, 10
(D) 10, Undfefined Value

Compiler
Level: Expert Category: classesAndobjects


Question: 268

(A) O(log N)
(B) O(N/2)
(C) O(N)
(D) O(N^2)

Compiler
Level: Beginner Category: time_space_complexity


Question: 269

(A) Compilation error
(B) O(logN)
(C) O(N/2)
(D) O(N)

Compiler
Level: Practionar Category: time_space_complexity


Question: 270

(A) O(2N)
(B) O(N)
(C) O(N+N)
(D) O(N*N)

Compiler
Level: Practionar Category: time_space_complexity


Question: 271

(A) O(N+M)
(B) O(N*M)
(C) O(N)
(D) O(M)

Compiler
Level: Practionar Category: time_space_complexity


Question: 272

(A) O(N)
(B) O(Nlogn)
(C) O(N^2)
(D) O(N^3)

Compiler
Level: Practionar Category: time_space_complexity


Question: 273

(A) O(111*N)
(B) O(Nlogn)
(C) O(1)
(D) O(N)

Compiler
Level: Practionar Category: time_space_complexity


Question: 274

(A) O(N)
(B) O(logN)
(C) O(sqrt(N))
(D) O(∞)

Compiler
Level: Practionar Category: time_space_complexity


Question: 275

(A) O(LogN)
(B) O(1)
(C) O(N)
(D) O(N longN)

Compiler
Level: Practionar Category: time_space_complexity


Question: 276

(A) O(LogN) , O(N)
(B) O(N), O(N)
(C) O(N), O(1)
(D) O(N), O(0)

Compiler
Level: Practionar Category: time_space_complexity


Question: 277

(A) extern
(B) extern
(C) auto
(D) mutable & thread_local

Compiler
Level: Practionar Category: storgeclass


Question: 278

(A) NULL
(B) 0
(C) empty value
(D) indeterminate or garbage value

Compiler
Level: Practionar Category: storgeclass


Question: 279

(A) I am a const object.
(B) Compilation Error
(C) Runtime Error
(D) I am a const object.

Compiler
Level: Experts Category: classesAndobjects


Question: 280

(A) p1 is less than p2
(B) p1 is greater than p2
(C) p1 is equal to p2
(D) Compilation Error

Compiler
Level: Experts Category: cpp20


C++ Online Test
Compile C++ code here

Browse C++ Categories

Loops Conditional Functions Operators Structure Enum Data Types Inheritance Pointers Classes & Objects Vtable Type Casting New & Delete Namespaces Virtual Functions Abstract Class STL Singleton Class Exceptions C++11 C++17 C++20 Time & Space Complexity 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.