Module1 CSP
Module1 CSP
Q1) The Width of a processor’s data path is measured in bits. Which of the
following are common data paths?
a. 8 bits
b. 12 bits
c. 16 bits
d. 32 bits
Q2)Which is the type of memory for information that does not change on your
computer?
a. RAM
b. ERAM
c. ROM
d. RW / RAM
Q3)Which one of the following is the address generated by CPU?
a) physical address
b) absolute address
c) logical address
d) none of the mentioned
Q4.An embedded system must have (a) hard disk (b) processor and memory (c)
operating system (d) processor and input-output unit(s).
Q5.During the execution of the instructions, a copy of the instructions is placed in
the ______ .
a) Register
b) RAM
c) System heap
d) Cache
Q6. CISC stands for,
a) Complete Instruction Sequential Compilation
b) Computer Integrated Sequential Compiler
c) Complex Instruction Set Computer
d) Complex Instruction Sequential Compilation
Q7.The I/O processor has a direct access to ....................... and contains a number
of independent data channels.
A) main memory
B) secondary memory
C) cache
D) flash memory
Q8. Write a C Program to swap three numbers without using fourth variable.
Q9)Write a C Program to swap three numbers .
Q10)Write a C Program to swap two numbers using third variable.
Q11)Write a C Program to swap two numbers without using third variable.
Q12)Write a C Program to print the total seconds in a given time(hrs,min,sec's).
Q13)Write a C Program to convert temperature from Fahrenheit to
centigrade.C=(F-32)*5/9.0
Q14)Write a program to calculate the sum of digits of a three digit number.
Q15) Write a program to find the reverse of a number.
Q16)Write a program to merge n numbers.
Exp: a=1,b=2,c=3 is 123 and a=1,b=2 is 12.
Q17)Write an algorithm,pseudo code and flowchart for finding:
A)Maximum out of three numbers
B)Maximum out of four numbers
C)Factorial of a number
D)Smallest out of n numbers
E)First and second highest out of n numbers
Q18)Determine which of the following are valid identifiers.If invalid ,explain why
A) record1 B) $tax C) name_and_address D)1record e)name f)name-and-address
g)file_3 h) name and address I) 123-45 j)return
Q19)Determine which of the following are valid character constants
A) 'a' B)'\\' C) '\0' D)'$' E) '\a' F)'xyz' G)'\n' H)'T' I)'\052'