C++ Interview Questions on Time & Space Complexity

Home » C++ » Time & Space Compexity


Question: 1

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

Compiler
Level: Beginner Category: time_space_complexity

Question: 2

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

Compiler
Level: Practionar Category: time_space_complexity

Question: 3

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

Compiler
Level: Practionar Category: time_space_complexity

Question: 4

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

Compiler
Level: Practionar Category: time_space_complexity

Question: 5

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

Compiler
Level: Practionar Category: time_space_complexity

Question: 6

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

Compiler
Level: Practionar Category: time_space_complexity

Question: 7

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

Compiler
Level: Practionar Category: time_space_complexity

Question: 8

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

Compiler
Level: Practionar Category: time_space_complexity

Question: 9

(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

Browse By Categories


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.