Choose The Correct Statement For The Following Code Segmentp #1176
Choose the correct statement for the following code segment?</p> <pre><code class="language-c"> bool check (int N) { if( N & (1 << i) ) return true; else return false; } </code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs122 Data Communication and Computer Network. It can also be found in gs gs122 Number Theory - Generating Subsets - Quiz No.1.
Choose the correct statement for the following code segment?
bool check (int N) { if( N & (1 << i) ) return true; else return false; }
function returns true if N is odd
function returns true if N is even
function returns true if ith bit of N is set
function returns false if ith bit of N is set
Similar question(s) are as followings:
Online Quizzes of gs122 Data Communication and Computer Network
Sorting - Insertion Sort - Quiz No.1
gs gs122 Data Communication and Computer Network
Online Quizzes
Sorting - Insertion Sort - Quiz No.2
gs gs122 Data Communication and Computer Network
Online Quizzes
Sorting - Insertion Sort - Quiz No.3
gs gs122 Data Communication and Computer Network
Online Quizzes
Sorting - LSD Radix Sort - Quiz No.1
gs gs122 Data Communication and Computer Network
Online Quizzes
Sorting - MSD Radix Sort - Quiz No.1
gs gs122 Data Communication and Computer Network
Online Quizzes
Sorting - MSD Radix Sort - Quiz No.2
gs gs122 Data Communication and Computer Network
Online Quizzes