You are on page 1of 8

Mathematics- I Paper/127

FUNDAMENTALS OF
COMPUTERS
A Brief Introduction

Computer is an electronic device which takes the input as a


raw material, process upon them and convert that material into the
output. Here input is called data and output is called information.

Important Facts to Remember

IT contain four parts.


Memory is used to store data.
CPU is used for processing.
Mouse and keyboard are input devices.
Monitor and plotter are output devices.

Objective Questions

of the following questions, four alternatives


are
For each
is correct. Choose
given for the answer. Only o n e of them
the correct alternative

I. Who is the father of C language?


(a) Bjarne Stroustrup (b) James A. Gosling
(c) Dennis Ritchiee (d) None of these
The brain of computer system is
-

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
-

6. Program that converts of these


(a) Compiler (b) Applet (c) Assembler (d) None
-
7. 2's complement ?+1's complement
=
(d) 12
(b) 1 (c) 10
(a) 0
128/B.Sc. Part Il1- 2019
Methematics -I Paper/ 129
is -

8. ASCII stands for - Main memory

(b) permanent
(American standard code for information interchange
(a) non-volatile

(b)All scientific code for information (c) control unit drolatile


(c) American series code for interchange Who produce hardcopy
(d) American science code forinformation interchange 2 (a) RGB monitor (b) Keyboard
9. CD-ROM stands for information interchange (d) None of these
cPrinter
The full form of RAM
(a)Compactable Read
(b) Compact Data ReadOnly Memory 23. (aRandom access memory (b) Read access memory
(c) Only Memory (d) All of above
Compactable Disk Read Only Memory c) Read only memory chip
10.
dLompact Disk Read
WAN stands for Only Memory 24. The full form of
ROM -

Read only memory


(a)Random access memory
(a) Wapp Area Network (d) All of above
(Wide Area Network (c) Read only memory chip
(c) Wide Auto Net
(d) Wired Area Network CAD stands for
-

11. EBCDIC stands for 25. (b) Computer added for design
(aComputer aided design
-

aExtended Binary Coded Decimal Interchange Code (c) Computer application


for design
(b) Extended Binary Code
Decimal Interchange Code (d) None of these
(c) Enternal Bit CASE
DECIMAL INTERCHANGE CODE Keyboard is . . . . d e v i c e .
d) Extended Binary 26. b) Output
12. Instructions and memory addresses are anput (d) Volatile
(c) Control unit
(a) Character code represented by -

(c) Binary word bBinary codes 27.


Monitor i s . . device.
Output
13. (d) Parity bit (a) Input
The two kinds of main d) Volatile
memory are -

(c) Control unit


(a) Primary and
secondary (b) PROM and RAM tape can
serve as
(b) Output media
cROM and RAM (d) None of these
28. Magnetic
(aSecondary storage media
these
14. LAN stands for - (d) None of memory
of
(c) Input media the secondary
Local Area Network (b) Line Area Network the primary
memory,
compared to
(c) Loop Auto Net 29. As
15. (d) None of these is -

(c) Fast
Stow
Programs designed to perform specific tasks is known as
a computer
(b) Cheap
(a) system software -

(a) Large is- these


bapplication software of secondary
memory
(c) ROM (d) None of
(c) server programs 30. Example
16. (d) operating system alard disk (b) the
RAM
A hybrid computer is a- computeris
use for storage? (d) Micro
(a) digital computer Which (c) Mini
(b) analog computer 31 aMainframe (b) Super
Both a digital and analog computer Mouse is... device. (b) Output
(d) None of the above 32.
17. A byte consists Input (d) Volatile notation
of -

(c) Control unit used as a


shorteut
(a) One bit (b) Four bits Eight bits (d) Sixteen number system is
commonly
18. A nibble bits Which ?
consists of - 33. of four binary
digits
(b) Decimal
(a) One bit for groups

19. Four bits (c) Eight bits (d) Sixteen bits


A kilobyte consists (a) Binary DHexadecimal
text or
of- (c) Octal converts drawing, printed
(a) One byte device that
20. 024
A computer consists of byte (c) 64 byte (d) 102 bits A light
sensitive
form is these
-
34. digital (d) None of
(a) A central other imagesinto (c) Plotter
(c) Plotter

(c) Input and


processing unit (b) A memory (b) Printer
output unit dAll of the abave
aScanner
130/B.Sc. Part ll-2019 Mathematics-I Paper/ 131
35. The basic
architecture of Answer Sheet
(aJohn Von Neumann computer was developed b

1 ( c ) 2.(c) 3. (a)4.|(a) 5. (c)6. (a) 7. (b)


(b) Charles Babbage
C) Garden Moore
36 In how many (d) None of these 8. (a) 9 (d)10. (b)11. (a) 12. b)13. (c)14. (a)
generations a computer can be classified?
(a) 3 b)4 ( b 16. (c) 17. (c) 18. (b)19. (b)20. (d)21.
d
37 (d) None of these a9 (c23. (a)24. (b25. (a)26. (a)27. b)28. (a)
Microprocessor 22.
introduced ofo0 (C)
was 1n which generation
computer? d 30. (a)31.(a) 32. (a)33. (d) 34. (a) 35. (a)
36. (c) 37. (b) 38. (b) 39. (b40. (a) 41. |(a) 42. (b)
(a) 3
38. (c) 5 (d) None of
Second generation
computers was made of -
these3 (c)47.(c48. (a)
(b)44. (b45. (a) 46.
(a) Vacuum tubes
(c) Registers Transistors
(d) None of these
39 Which of the
following is volatile?
(a) Hard disk memory
FLOWCHARTS
40. GUI _tands for-
Graphical
RAM (c) ROM

User Interface (b)


(d) None of these
13
(c) Graphical User Internet Graphical Unit Interface
41. The 1 and 0 in the (d) None of these A Brief Introduction
binary number system are called
number or - Binary of any problem or ann
labits Flowchart is a symbolic representation
(b) bytes which are use to solve
42. The IC chip is made of - (c) kilobytes (d) None of It is the collection of six symbols
these algorithm.
form.
(a) Bits the problem in the diagram
43. Which of the Silicon was the (c) IRON (d) None of these
(a) 3003
following first Intel processor
introduced? |Important Facts to
Remember

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

in AT & T's language to write operating


developed as a system programming
system.
aAnput/Output (b) Flow
(c) Decision (d) Termination Important Facts to Remember
4. The symbol given
hereepiets what in flowehart? 32 keyboard.
C language has level language.
also called middle
(a) Input (6) Output C language is
in operators.
Flow (d) Termination C language is rich language.
is a general purpose
5. Who provides pictorial representation C language
(a) Structed english
of given problem- Clanguage is a simple
language.

(c) Program
BPlowchart
(d) None of these Objective Questions
6. Algorithm is a procedure or step by step process for solving a alternatives are

questions, four Choose


problem of the
following is correct.

True (b) False (c) can not say (d) None of these
For each
Only one of them
for the ansuwer.

7. Which symbol is used as the decision in a flowchart? given


t h e correct alternative.
(a) Circle (b) Rectangle Diamond (d) None ofC
language?
A. Gosling
8. The Process is used in flowchart represented by- Who is the father (b) James
. these
(d) None of
(a) Biarne Stroustrup
(a) Circle bRectangle (c) Diamond (d) None of these ( D e n n i s Ritchie
9. Which symbol is used to represent input and output operation in developed at
-

1972
C language of USA in
flowchart? 2.
T's Bell
Laboratories 1973
(aAT & of USA in
(a) Circle
Laboratories

(b) Rectangle T's BOl Canada in 1979

(c) Diamond (b) AT & of


Laboratories

AdParallelogram (c) AT &


T's Bell
level. computer
10. Which symbol is used to connection between different symbols these high
(d) None of is not a
following
of flowchart - the
3.
Which of (d) C++.
(a) Circle (b) Rectangle (c) Diamond programming language?
Arrow FORTRAN
(BMODEM
(c)C
for
character
constants
is?

(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

8.(b) 9 (d)10. (d) 5. C programs


are

(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 ?

(d) None of the above language ( a (asterisk)


7. C language contain number (hyphen) dunderscore)
how many number of would you round off a valué from 9.55 to 10?
How
(a) 30
2 (c) 24
keywords? 9. (a Ceil (b) Floor (c) Clear (d) None of these
8. Cvariable cannot start with- (d) 36
By default a real number is treated as a -
a a number (b) a underscore
0. (a) float double
(c) Both of the above (d) None of these (c) long double a) far double
9. If integer needs two
bytes of storage, then maximum value of Autois
unsigned integer is- an 2 (b) definition (c) identifier (d) error
(akeyword
a).216-1 (b)215-1 mention the prototype of a function?
(c) 216 (d) 215 22. When we
10. What is the correct value to return to the (a) Defining (Declaring
the successful completion of a program? operating system upon (c) Prototyping d) Calling
(a) 1 (b) 2 What will be the output
of the following program ?"
11. All C programs d)
(d) these 23.
None of these
must contain? #include<stdio.h>

(a) start0 (b) system() main) int a=40;


12. C program contain atleast how (d) printf)
many function ? int main()
(a (b)2 (c)
13. Which of the following is correct variable (d) None of these
int b-20;
(a) floating type ?
printf"%d\n", b);
(b) character
(c)integer ddouble return 0;
14. Which of the following is (d) No Output
a valid name for a C variable? (c) Error [Kanpur 2018]
(a) 8anil (b) 40
(c) anil kumar anilkumer a20 which of the
(d) None of these below,
15. Find the output of the To print out a and b given use?
void main()
following prograr 24.
following printf)
s t a t e m e n t will you

#include<stdio.h>

int i-65, j-65;


int a-6.78.;
printf"of %f", i, j); b);
(b) printf(%f %f",
double b=9.14; a,
printf"%d%lf", a, b); b);
(d) printf"%f %Lf",
a,
(a) 65 65 (b) 65 56 the
(c) %Lf", a, b); of
16. What is the difference between a 75, 76 derror (c) printf"%ff and b given below, which
declaration anda definition of scan a use?
a variable? 25. To s t a t e m e n t will you
scanfl)
(a) Both can occur following

first.
multiple times, but a declaration must occur # i n c l u d e < s t d i o . h >

(b) A definition occurs


times.
once, but a declaration may occur many int a,
&a, &b);
scanf("%d%c", %L", &a, &b);
c) Both can occur char b; (b) scanf"%f
&a, &b); %lf', &a, &b);
first. multiple times, but a definition must occur (ascanf"od %c",
&b); (d) scanf"of
number
scanf"%f %d", &a, the binary
dA declaration occurs once, but a (c)
In which numbering system
can

times. definition may occur many 26 to ?


1 1 1 1 0 0 0 0 1 0 1 0

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>

27. Bitwise operator is -


(a) && operator int main()
(c) || operator D& operator
(d)! operator
28 Which bitwise operator is suitable
for checking
Int arr[ ] = {12 ,21;
particular bit is on or off? whether a printf"d\n", sizeoflarr)/sizeofarr[0]);
(a) && operator return 0;
& operator
(c)||operator (d)!operator
29 How many times "hello" is get (c)6
(b) 4 (d) 7
printed ? (a)2
#include<stdio.h>
int main() 35. What is the result of the following code?
main()

int: int al41=1,2);


for(x=0; x<=10; x++) printf%d",a[3]);
(d) None of these
if5) (a) 1 b) 2
continue; of the following code
-

What is the result


else 36.
main)
break;
printfhello"); int al4]={1,2);
printf%d",a[1]);
return 0; (d) None of these
(c) 0
(a) 1 2 stored in which memory
are always
(a) Infinite times An
elements
(b) 23 times 37. array
C time (d) 24 times locations (b) random
30. Which of the following is not La Sequential (d) None of
these

b) &&
logical operator? (c) semi-random
31. (c) || (d)! value is
Which of the
-

following cannot be checked in a


switch 38. Garbage (b) 1
case statement? (a) 0 None of these
system (d)
(a) Character (b) Integer value define by
(any following code
-

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);

overwritten. ggarbage value


(b) 0
these
d)The array size would (d) None of
33. In ,
normally grow. (c) garbage declares a n array
?
if you pass an array as an argument to a function, following correctly(b) int anarr,
actually gets passed? wna 40. Which of the
these
(a) Value of elements in ( n t anarr{101; (d) None of
array (b) First element of the array
(CBase address of the array c ) anarrl101;
d) Address of the last
138/B.Sc. Part ll-2019 Mathematics-1 Paper/ 139
41. What is the index number of the last element of an initialized
array (a) cannot be
50elements? (b) can be initialized with
garbage value
(a)49 (b) 47 (c)0 (d) None of these its value throughout the file of the program
(cretains
42. Which of the following is a three-dimensional array?
(a) array anarr|201(201;
(d) None of these
n t anarr|20][20||20; automatic variable that is declared but not
The value of an
(c) int arr(20]; (d) char arr(20]; 55. initialized will be
-

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
,

actually gets passed ?


a
function, what (b) Syntax Error (d) None of these
(c) Logical Error
(a) Value of elements in array (b) First element of the
array if (a 5)
59
=

CBase address of the array


d) Address of the last element of array printf ("a is even ");
47. else
If a=17 and b=1lthen the statement e v e n ");
x=(a>b) ? a:b; printf " a is not
arássigns a value 17 to x (b) gives an error message in the printing of -

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?

(a) a>b??c=30:c=40; would the following


(c) a>b?c-30; hx=(a>b)? a:b 61. What error

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) int primitive data structure indicatesthe


functionl a
(b) Has no arguments
(b) float (c) char dNone of these Returns nothing these
53. Which of the following'C' type is a primitive data type? d) None of
(a) and (b)
Both
Mnt
-

(b) array (c) structure (d) None of these c function printf is


used in a
program

54. A static variable - 63. The


140/B.Sc. Part ll-2019 Mathematics -lPaper/141
When input i to be printed on to a file else
(b) When output o to be printed on to a file printf ("d", i);
c)Both (a) and (b) (d) None of these
(c) 0 (d) None of these
64 Who is separator -

(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);
=

(c) at comma along with digits else


(d) digits separated by commas printf ("%od", i);
67. How times
[Kanpur 2018]
many the loop in "for
run ? will (c)0 (d) None of these
(a) 5 [Kanpur 2018]
(a) 3 times (b) 4 times Cforever (d) never
Answer Sheet
68. The break statement is used to exit from [Kanpur2018] 7. (b)
(b)
(b)5. (a)6. (a)
(a) if statement b a for loop 1(c)
. 2. (a)3. (b) 4. (c)12. (a) 13. (d)14. b)
(c) program (d) main function [Kanpur 2018 8. (a) 9 (a) 10. (c)11. 20. (b) 21. (a)
69. A do-while is useful when we want the
statements within the 16. (d) (a) 18. (d)| 19. (a)
17. 28. (b)
15. (d) 26. (b)| 27. (b)
loop must be executed: 22. (b) (a) 24. (a) 25. (a) 33. (c) 34. (a) 35. (c)|
23.
(a) Only once (bat least once 31. (c) 32. (c) 41. (a) 42. (b)
(c) more than once 29. (c) 30. (a) 38. (c) 39. (a)| 40.|(a)
(d) None of these Kanpur 2018 36. (6) 37. (a) 48. (a) 49. (b)
70. The statement of # include
"filename.h" is | (b) 46. (c) 47. (a)
replaced by the 43. (b)44. (d) 45. 55. (a) 56. (b)
constants of "filename.h"
51. (d) 52. (d)53. (a) 54. (c) 62. (a) 63. (a)
50. (d)| 61. (a)
abefore compilation (b) after compilation 59. (a)| 60. (c) (b)69. (b) 70.
(a)
57. (a) 58. (a)
(c) during compilation (d) during typing a program (a) 67. (c)| 68.
64. (a) 65. (c) 66.
[Kanpur 2018] 73. (b)
71. (c) 72. (d)
71. Which of the following statement is (0B)
used to take control to the File
20191B.Sc.-ll
Math.-ll

beginning of the loop ? Notes 20191B.SclB.Sc. INB.


Sc.-ll Math.-l
(OB)
20191Cument

(a) exist (b) breakk D:Madhurima 2019Easy


Continue (d) None of these ( P a g e 127-44) 2019.doc

[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

You might also like