Give output of following C code:
int count(unsigned x){ int b; for (b = 0; x != 0; x >>= 1) if (x & 1) b++; return b;}
int main(){ unsigned int a = 3; printf("%d", count(a)); return 0;}
Previous 10 Questions — JAMIA MILLIA ISLAMIA MCA 2023
Nearest first
1
2
3
4
5
6
7
8
9
10
The output of following C language statement is:
printf("\nhello" + 3);
Topic: JAMIA MILLIA ISLAMIA MCA 2023
Example of 5th generation language is:
Topic: JAMIA MILLIA ISLAMIA MCA 2023
The simplified form of the given Boolean expression is:
A'CD'E + A'B'D' + ABCE + ABD
Topic: JAMIA MILLIA ISLAMIA MCA 2023
When you simplify algebraically the given expression to a minimum sum of products,
how many terms do you get?
(A + B…
Topic: JAMIA MILLIA ISLAMIA MCA 2023
Select the next to smallest memory size from the given options:
Topic: JAMIA MILLIA ISLAMIA MCA 2023
Which out of these is NOT a type of ROM?
Topic: JAMIA MILLIA ISLAMIA MCA 2023
Which file format is NOT suitable for SD card in Android phone?
Topic: JAMIA MILLIA ISLAMIA MCA 2023
Which statement out of these is NOT correct about multiprocessor systems?
Topic: JAMIA MILLIA ISLAMIA MCA 2023
By using .............. addition or subtraction of signed numbers are performed.
Topic: JAMIA MILLIA ISLAMIA MCA 2023
Which out of these does NOT support VoIP?
Topic: JAMIA MILLIA ISLAMIA MCA 2023
Next 10 Questions — JAMIA MILLIA ISLAMIA MCA 2023
Ascending by ID
1
2
3
4
5
6
7
8
9
10
What is the data type of the following expression: expr₁ ? expr₂ : expr₃ if expr₁ is of type floa…
Topic: JAMIA MILLIA ISLAMIA MCA 2023
Which operator out of these has got the highest precedence?
Topic: JAMIA MILLIA ISLAMIA MCA 2023
Which operator out of these has left to right associativity?
Topic: JAMIA MILLIA ISLAMIA MCA 2023
Consider the following code segment:if (n > 0) for (i = 0; i < 3; i++) if…
Topic: JAMIA MILLIA ISLAMIA MCA 2023
For this kind of declaration of main() function in a C program ‘copy.C’:int main(int argc, char *argv[]) { }and this ca…
Topic: JAMIA MILLIA ISLAMIA MCA 2023
What is the correct file mode that opens preexisting file in read and write mode?
Topic: JAMIA MILLIA ISLAMIA MCA 2023
Which C expression correctly represents this statement:
“It decrements pointer p before fetching the character that p…
Topic: JAMIA MILLIA ISLAMIA MCA 2023
How many times this statement will execute:
for (; *s == *t && *t != '\0'; s++, t++)
if both character pointers ‘s’ a…
Topic: JAMIA MILLIA ISLAMIA MCA 2023
Which out of these statements is NOT true:
Topic: JAMIA MILLIA ISLAMIA MCA 2023
Which out of these is NOT the keyword C99 has added in addition to 32 keywords defined by ANSI C?
Topic: JAMIA MILLIA ISLAMIA MCA 2023