Home
SELF STUDY
BrowsePracticeTestsPlaylistDoubts & solutionsFree live classesOther courses

Building Blocks of Programmimg

Quick practice

Question 1 of 5

The total number of bits required to store a number which can have values from 0 to N is

A

\lfloor \log_2{N} \rfloor

B

\lfloor \log_{2}{(N+1)} + 1 \rfloor

C

\lceil \log_{2}{(N)} + 1 \rceil

D

\lceil \log_{2}{(N+1) \rceil}

Concepts

Get unlimited practice with Competitive Programming subscription

pick

Boost your performance with adaptive practice tests

pick

Practice every concept in the syllabus

pick

Compare your speed and accuracy with your peers

pick

Download the app and practice on the go