# C/C /C MCQS:-The ABC of C Sample Test,Sample questions

1.two

2.Infinite

3.three

4.one

1.1001111010

2.100000101

3.1011111010

4.1101111011

1.101010001

2.110011001

3.1011111001

4.101011001

1.11111001

2.11110010

3.11110011

4.10111011

1.11111001

2.11100110

3.11001001

4.11100110

## Question: `C variables are case `

1.insensitive

2.Sensitive

3.Both of the above

4.None of the above

## Question: `Decimal representation of 101010001 is :-`

1.317

2.345

3.337

4.None of the above

1.347

2.276

3.325

4.345

## Question: `Decimal representation of 110011001 is :-`

1.317

2.409

3.512

4.None of the above

## Question: `Decimal representation of 11111001 is :-`

1.249

2.261

3.256

4.None of the above

## Question: `Decimal representation of 11111111 is :-`

1.256

2.257

3.255

4.None of the above

1.E9

2.99

3.F9

4.159

1.14

2.15

3.12

4.0

## Question: `﻿Point out which of the following variables names are valid:`

1.variable_salary

2.var.

3.variable name

4.variable-sal

1.1372

2.1371

3.7132

4.7312

## Question: `Octal representation of 11111001 is :-`

1.79

2.371

3.234

4.None of the above

## Question: ```What will be the output of the following program,consider 10 as a input:- int main() { scanf("%d",&n); printf("%d",n); return 0; }```

1.10

2.4

3.Error:undefined Symbol n

4.None of the above

1.1,1,1,1

2.1,1,-1,-1

3.compiler error

4.runtime error

1.Runtime error

2.Compiler error

3.0,6

4.0,-6

1.0

2.10

3.5

4.7

1.6

2.10

3.7

4.0

## Question: ```What will be the output of the following program: #include<stdio.h> int main() { int a; a=3*4%5; printf("%d",a); }```

1.12

2.2

3.0

4.None of the above

## Question: ```What will be the output of the following program: #include<stdio.h> int main() { int a; a=4%5+6%5; printf("%d",a); return 0; }```

1.0

2.5

3.1

4.None of the above

1.Compiler error

2.Runtime error

3.1,-1,-1,1

4.1,1,1,1

## Question: ```What will be the output of the following program: int main() { float a=5,b=2; int c; c=a%b; printf("%d",c); return 0; }```

1.1

2.2

3.error

4.None of the above

1.-657

2.657

3.-647

4.647

1.Error

2.18

3.2

4.4

1.6

2.10

3.7

4.0

## Question: ```What will be the output of the following program:- int main() { float a; a=4/2; printf("%f,%f",a,4/2); return 0; }```

1.2,2

2.2.000000,2.000000

3.2.0,2.0

4.2.000000,0.000000

1.6.5

2.6

3.6.5

4.0

## Question: ```What will be the output of the following program:- int main() { int a,b; a=5.999999; b=5.000001; printf("%d,%d",a,b); return 0; }```

1.5.999999,5.000001

2.5,5

3.0,0

4.None of the above

1.7

2.5

3.8

4.6

1.15

2.15

3.15

4.0

1.1

2.0

3.2

4.error

1.0

2.1

3.2

4.Error

1.4,4

2.4,4.000000

3.4,0.000000

4.error

1.4,0.000000

2.4,4

3.4,4.000000

4.4.0,4.0

1.17

2.5

3.12

4.13

1.36,7

2.25,7

3.25,6

4.25,5

1.15,5

2.15,8

3.18,7

4.21,8

1.2

2.3

3.1

4.4

1.291,ch

2.291,#

3.35,#

4.291,291

## Question: ```What will be the output of the following programs:- #include<stdio.h> int main() { float f; printf("%d",sizeof(f)); }```

1.Compiler error

2.Ascii value of f

3.4

4.1

1.4,4

2.4,8

3.8,8

4.8,4

## Question: ```What will be the output of the following programs:- #include<stdio.h> int main() { int i; printf("%d",sizeof(i)); }```

1.Compiler error

2.Ascii value of i

3.1

4.4

1.1

2.2

3.4

4.Compiler error

1.4

2.2

3.1

4.Compiler error

1.Compiler error

2.144

3.111

4.1

1.Compiler error

2.144

3.111

4.1

1.72,110,48

2.72,72,72

3.72,58,114

4.72,48,144

## More MCQS

##### R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!