Department of Computer Engineering Academic Year 2020-21 Class: Computer & IT Subject: 22226 PCI (Programming in C) MCQ Unit 2: Basic of C Programming MCQ Question Bank With Answers
Department of Computer Engineering Academic Year 2020-21 Class: Computer & IT Subject: 22226 PCI (Programming in C) MCQ Unit 2: Basic of C Programming MCQ Question Bank With Answers
Department of Computer Engineering Academic Year 2020-21 Class: Computer & IT Subject: 22226 PCI (Programming in C) MCQ Unit 2: Basic of C Programming MCQ Question Bank With Answers
A. Bjarne Stroustrup
B. James A. Gosling
C. Dennis Ritchie
D. Dr. E.F. Codd
Ans : C
A. PASCAL
B. B
C. BASIC
D. FORTRAN
Ans : B
4. What is C language?
A. K&R
B. C89
C. ANSI
D. R&K
Ans : A
A. General purpose
B. System development work
C. Data processing
D. None of these
Ans : B
7. C programming language is
A. Procedural language
B. Object Oriented language
C. Scripting languages
D. None of these
Ans : A
A. IEEE
B. ISO
C. IEC
D. ANSI
Ans : D
A. 1970
B. 1971
C. 1972
D. 1973
Ans : C
A. 31
B. 32
C. 64
D. 63
Ans : B
A. TRUE
B. friend
C. export
D. volatile
Ans : D
14. What is the output of this program?
void main()
{
int x = 10;
float x = 10;
printf("%d", x)
A. Compilations Error
B. 10
C. 10
D. 10.1
Ans : A
#include <stdio.h>
int main()
{
int i;
for (i = 0;i < 5; i++)
int a = i;
printf("%d", a);
#include <stdio.h>
int var = 20;
int main()
{
int var = var;
printf("%d ", var);
return 0;
A. Garbage Value
B. 20
C. Compiler Error
D. None of these
Ans : A
void main()
{
int p, q, r, s;
p = 1;
q = 2;
r = p, q;
s = (p, q);
printf("p=%d q=%d", p, q);
A. p=1 q=1
B. p=1 q=2
C. p=2 q=2
D. Invalid Syntex
Ans : B
void main()
{
printf("%x",-1<<4);
A. fff0
B. fff1
C. fff2
D. fff3
Ans : A
#include <stdio.h>
void main()
{
int a=1, b=2, c=3, d;
d = (a=c, b+=a, c=a+b+c);
printf("%d %d %d %d", d, a, b, c);
A. 11 3 5 11
B. 11 1 5 11
C. 11 3 2 11
D. 11 3 3 11
Ans : A
void main()
{
int a, b = 5, c;
a = 5 * (b++);
c = 5 * (++b);
printf("%d %d",a,c);
A. 30 35
B. 30 30
C. 25 30
D. 25 35
Ans : D
Happy Learning!
cwipedia.in