C Programming MCQ
C Programming MCQ
FUNDAMENTALS OF
COMPUTERS
A Brief Introduction
Objective Questions
2.
(b) CU (c) CPU (d) Register
(a) ALUJ
First high level language was -
3. d) COBOL
FORTRAN (b) C++ (c) C
(a)
The binary number system uses of
powers
(b) 10 (c)8 (d) 16
(a) 2
converts assembly language to machine language
5. Program that
is
(a) Compiler (b) Interpreter
(d) None of these
(c) Assembler is
high language to machine language
-
(b) permanent
(American standard code for information interchange
(a) non-volatile
11. EBCDIC stands for 25. (b) Computer added for design
(aComputer aided design
-
(c) Fast
Stow
Programs designed to perform specific tasks is known as
a computer
(b) Cheap
(a) system software -
44.
A004 (c) 8005 (d) None of these
Operating system is the software - Algorithm is a step by step process.
(a) Application is a symbolic representation.
(c) Both (a) and (b) bSystem Flowchart
called symbol chart.
45. (d) None of these Flowchart is also
Arithmetic logic unit perform - Flowchart contains
six symbol.
(aperform arithmetic operations Decision is define
symbol by diamond.
(b)store data Objective Questions
(c) perform comparison
46. (d) None of these
The operating alternatives a r e
(a) Memory
system manages- the following questions,
four
Choose
(b) Processor For each of o n e of them
is correct.
47. Which memory is non-volatile CBoth (d) None of these
and may be written given for the answer. Only
(a) RAM (b) ROMI only once? the correct alternative.
what in flowchart?
48. CPROM (d) None of these given here depicts
EEPROM stands for- 1. The symbol
Electrically
(6)
Erasable Programmable
Read-Only Memory
Electrically Error Programmable Read-Only Memory
(c) Electrically Erasable Programmable
(d) None of these Random-Only Memory
49. The
expression evaluates to: (b) Output
(a) 822 (a) Input
(b)-2560 (c) 2560 (d) 0 [Kanpur 2018]
(d) Termination
Decision
Mathematics-lI Paper/133
132/B.Sc. Partl1- 20119
2 The symbol given here depicts what in flowchart?
Programming in C
(a) Input
brStart/Stop A BriefIntroduction
(c) Decision (d) Termination
3. The symbol given here depicts what in flowchart? Dennis Ritchie
level language, it is discovered by
high
Cis a
Bell Laboratories of USA
in 1972. It was mainly
(c) Program
BPlowchart
(d) None of these Objective Questions
6. Algorithm is a procedure or step by step process for solving a alternatives are
True (b) False (c) can not say (d) None of these
For each
Only one of them
for the ansuwer.
1972
C language of USA in
flowchart? 2.
T's Bell
Laboratories 1973
(aAT & of USA in
(a) Circle
Laboratories
(a) a l l o w a b l e range
compiler b128 to 127
For 16-bit
Answer Sheet to 32768 of these
(d) None with the
(a) 32767 level language
1. (c) 2. b3. (a)4. ( 5. (b) 6. (a) 7.(C) (c) 32767 to 32798
converted
into
machine
(b) editor
help
of the above
aCompiler (d) All of
c ) assembler
134/B.Sc. Part ll- 2019
Mathematics-Ill Paper/ 135
6. C was primarily developed as - contains how many
Integer
(a) system programming language 7.
(a2
4 (c)8 (d) None of these
(b) special purpose languagee
(c) application processing 8.
hich of the folowing symbol allowed in a variable
(6) (pipeline)
name ?
#include<stdio.h>
first.
multiple times, but a declaration must occur # i n c l u d e < s t d i o . h >
be easily converted
136/B.Sc. Part ill-2019 Mathematics- Ill Paper / 137
(a) Decimal system
Hexadecimal system 4.
What will be the output of the program ?
(c) Octal system (d) No need to convert
#include<stdio.h>
b) &&
logical operator? (c) semi-random
31. (c) || (d)! value is
Which of the
-
32. What will happen if in a C CFloat (d) None of these result of the
What is the
array element whose subscript
program you assign a
valüe.to an 39 main)
(a)The element will be set to 1. exceeds the size of array?
(b)The compiler would report an no error.
int al4]=l;
The program may crash if some important data geus
printf%d",a[l);
43 Which of the following gives the memory address of the first agarbage value (b) 0
element in array arr, an array with 50 elements? (d) None of these
(c) 1
(a) arr[1; ar; (c) arr|21; (d) None of these Literal means -
44 Which symbol is used as a statement terminator in C? 56. bstring constant
(a) stringg
(a)== (b) (c), d (c) constant (d) None of these
45. If the size of the array is less than the number
of e s initializes 67. The statement printft" % f",( float )9/5);prints-
then 57.
(b) 2.0 (c) 3 (d) None of these
(a) 0 assign a1.8 condition is missing
(c) size of array improve,
error 58. For loop in a C program, ifthe taken to the true
(d) None of these to be present and
46. In C, if you pass an array (at is assumed
as an
argument to
,
d)None of these
results
(c) assigms b value 11 to x (b) not even (c) odd can
(d) None of these Yeven then infinite looping
48. The output of the following is.int a=10; condition is missing,
printf("%d", a); In a for loop, if the
(a10 (b) 11 60.
(c) 100 (d) None of these be avoided by a -
(b) goto
49 Which of the following is the correct of usage conditional (a) break (d) None of
these
operators used in C? v o i d main
functiongive on
compilation?
fint a,int b)
d) None of these
50. What is the maximun number of dimensions an
array in C may
.have? int a;
(a) wo (b) Eight (c) Twenty dNone of these a 20;
51. An external variable return a,
b
(a) is globally accessible by all functions (b) None of these of
Redeclaration
Redeclaration of a
(b) has a declaration (d)
(c) will be initialized to 0 if not initialized (c) l o g i c a l e r r o r
dAll of these 62
The declaration
void function1(int)
52. Which of the following 'C' type is not a is function which
(a) 5
[Kanpur 2018]
(6): (c) (d) None of these of the following program ?
65. lfp is an integer variable in c, will return a value: 74.What will be output
(a) 1.5 (b) 2 # include <stdio.h>
(d) 0
main ()
66. An integer constant in C must have: [Kanpur 2018] fint i; i = 10;
r a t least one digit (b) at least one decimal point if i 5) printf ("%d"j);
=
[Kanpur 20181
72 What will happen if you
assign values to only 5 array elemens
out of 10 and print the array?
(a) nothing
(b) possible mal function
(c) error message from
compiler
inassigned element will be filled with zeros or garbage
[Kanpur 2018
73. What will be output of the
#include <stdio.h> following program ?
main ()
fint ii =
10;
if i 5)
=
printf ("%d",.ir