Home
Subjects
Chemistry
(2110001)
CS
(2110002)
CPU
(2110003)
ECE
(2110004)
EEE
(2110005)
EME
(2110006)
ES
(2110007)
Physics
(2110011)
EG
(2110013)
Calculus
(2110014)
VCLA
(2110015)
BE
(2110016)
About Us
Contact Us
Computer Programming and Utilization
(2110003)
Summer 2017 Sem-2
MCQ(s) of
Computer Programming and Utilization
(2110003)
- Summer 2017 Sem-2
Q.
1
In flowchart for what purpose diamond symbol is used?
(A) Processing
(B) Condition
(C) Data Flow
(D) Input/Output
Answer
(B)
Condition
Q.
2
Continue statement
(A) Breaks loop and goes to next statement after loop.
(B) Does not break loop but starts new iteration.
(C) Exits the program.
(D) Starts from beginning of program.
Answer
(B)
Does not break loop but starts new iteration.
Q.
3
Which of the following loop is executed at least once
(A) for loop
(B) while loop
(C) do while loop
(D) None of the above
Answer
(C)
do while loop
Q.
4
ASCII value of ‘a’ is
(A) 97
(B) 65
(C) 47
(D) None of the above
Answer
(A)
97
Q.
5
A float requires ______bytes in memory
(A) 2 bytes
(B) 1 byte
(C) 8 bytes
(D) 4 bytes
Answer
(D)
4 bytes
Q.
6
The format string to accept a string is
(A) %c
(B) %d
(C) %f
(D) %s
Answer
(D)
%s
Q.
7
Which header file is necessary for strlen() function?
(A) conio.h
(B) strings.h
(C) string.h
(D) stdio.h
Answer
(C)
string.h
Q.
8
When a key is pressed on keyboard, which standard is used for converting the keystroke into the corresponding bits
(A) ANSI
(B) ASCII
(C) EBCDIC
(D) ISO
Answer
(B)
ASCII
Q.
9
Which of the following is used as a string termination character?
(A) 0
(B) \0
(C) /0
(D) None of these
Answer
(B)
\0
Q.
10
Which of the following operator is used to select a member of a structure variable
(A) .(dot)
(B) ,(comma)
(C) : (colon)
(D) ;(semicolon)
Answer
(A)
.(dot)
Q.
11
C is a ___ language
(A) Machine Level
(B) Low Level
(C) Middle Level
(D) High Level
Answer
(C)
Middle Level
Q.
12
What is the output of the following code:
void main()
{
int i;
for(i=1;i<=10;i++);
printf(“%d\n”,i);
}
(A) 10
(B) 1 to 10
(C) 11
(D) None of the above
Answer
(D)
None of the above
Q.
13
What is the output of the following code:
void main()
{
int i;
for(i=65;i<70;i++)
printf(“%c,”,i);
}
(A) 65,66,67,68,69,70
(B) a,b,c,d,e,
(C) A,B,C,D,E,
(D) A,B,C,D,E
Answer
(C)
A,B,C,D,E,
Q.
14
What is the output of following code:
void main()
{
int i=5;
switch(i)
{
case 3: printf(“three”);
case 4: printf(“four”);
case 5: printf(“five”);
case 6: printf(“six”);break;
case 7: printf(“seven”);
default: printf(“default”);
}
}
(A) five
(B) fivesixsevendefault
(C) fivesix
(D) None of the above
Answer
(C)
fivesix