Sie sind auf Seite 1von 4

THIAGARAJAR COLLEGE: : AUTONOMOUS : : MADURAI - 9.

DEPARTMENT OF COMPUTER SCIENCE


Title : Bridge Course Max. Marks: 50
Class : I BSc(CS) 'B' Section Time : 1Hr.

Programming in C
Choose the Best Answer

1.Which of the following special symbol allowed in a variable name?


(a) * (asterisk) (b) | (pipeline) (c) - (hyphen) (d) _ (underscore)

2. Who is the father of C language?


(a) Bjarne Stroustrup (b) Dennis Ritchie (c)James A. Gosling (d) Dr. E.F. Codd

3.C language developed at


(a) AT & T's Bell Laboratories of USA in 1972 (c) Sun Microsystems in 1973
(b) AT & T's Bell Laboratories of USA in 1970 (d) Cambridge University in 1972
(c)
4.C programs are converted into machine language with the help of
(a) An Editor (b) An operating system (c) A compiler (d) None of these.

5. Which is the only function that must be included in every C program?


(a) Start() (b) main() (c) printf (d) getch()

6. What will be the output of the following program ?


void main ( )
{
int x=10,y=20;
printf (“\n %d”,x,y);
}
(a) 10 (b) 20 (c) 10 20 (d) None of these

7. Which of the following is not a relational operator?


(a)! (b) != (c) >= (d) <

8. which of the following is an operator in ‘C’?


(a) , (b) $ (c) @ (d) None of these

9. Which among the following is a unconditional control structure?


(a) do-while (b) if –else (c) goto (d) for

10.Which of the following language is predecessor to C Programming Language?


(a) A (b)B (c) BCPL (d) C++

1
11. Which symbol is used as a statement terminator in C?
(a) ! (b) # (c)~ (d) ;

12. Which escape character can be used to begin a new line in C?


(a) \a (b) \b (c) \m (d) \n

13. String constants should be enclosed between ___


(a) Single quotes (b) Double quotes (c) Both a and b (d)None of these

14. The operator && is an example for ___ operator.


(a) Assignment (b) Increment (c) Logical (d) Relational

15. The equality operator is represented by


(a) := (b)EQ. (c) = (d) ==

16. The operator + in a+=4 means


(a) a = a + 4 (b) a + 4 = a (c) a = 4 (d) a = 4 + 4

17. Which operator in C is called a ternary operator


(a) if..then (b) ++ (c) ? : (d) ()

18. The bitwise AND operator is used for _______


(a) Masking (b) Comparison (c) Division (d) Shifting bits

19. Symbolic constants can be defined using


(a) # define (b) const (c) symbols (d) None of these

20. The number of the relational operators in the C language is


(a) Four (b) Six (c) Three (d) One

Answer in one word

21.The datatype int occupies ___ bytes

22.The datatype float occupies ______ bytes

23.The escape sequence horizontal tab is _________

24._____ is a multiway branch statement.

25.The for loop is an example for decision making and ________ statements.

26. The if statement used in C is an example for decision making and _________ statements

27. What is the output of the following program?

2
#include <stdio.h>

void main() {

int i;

for (i = 1; i < 11; i+=2)


{
printf("%d ", i);
}
}

28.Symbolic constants are also called ____________.


29.___________ is an exit controlled loop.
30.Float data type occupies ________ bytes.

General Aptitude and Digital Principles

31.A sum of money at simple interest amounts to Rs. 815 in 3 years and to Rs. 854 in 4 years.
The sum is:
(a) Rs. 650 (b) Rs. 690 (c) Rs. 698 (d) Rs. 700

32. Find the greatest number that will divide 43, 91 and 183 so as to leave the same remainder
in each case.
(a) 4 (b) 7 (c) 9 (d) 13

33. 252 can be expressed as a product of primes as:


(a) 2 x 2 x 3 x 3 x 7 (b) 2 x 2 x 2 x 3 x 7 (c) . 3 x 3 x 3 x 3 x 7 (d) 2 x 3 x 3 x 3 x 7

34. Choose the alternative which is closely resembles the mirror image of the given
combination.

35.Find the number of triangles in the given figure.

A. 8 B. 10 C. 12 D. 14

36. FAG, GAF, HAI, IAH, ____


(a) JAK (b) HAL (c) HAK (d) JAI

3
37.The output of an AND gate with three inputs, A, B, and C, is HIGH when ________.
(a) A = 1, B = 1, C = 0 (b) A = 0, B = 0, C = 0 (c) A = 1, B = 1, C = 1 (d) A = 1, B = 0, C = 1

38. The Boolean expression for a 3-input AND gate is ________.


(a) X = AB (b) X = ABC (c) X = A + B + C (d) X = AB + C

39. Which of the following logical operations is represented by the + sign in Boolean algebra?
(a) Inversion (b) AND (c) OR (d) complementation

40. Find the minimum number of straight lines required to make the given figure.

(a) 13 (b) 15 (c) 17 (d) 19

Fill in the Blanks

41. 1 nibble = ______ bits.

42. A.B is a __________ gate.

43. The Boolean expression 𝑨. 𝑩 = ___________.

44.The binary equivalent of 3510 is ___________

45. The decimal equivalent of 111012is ___________

46. An example for Universal logic gate ______

47. Expansion of ASCII code ________

48. Convert the Octal number (712)8 to Decimal number

49. A gate whose output is High if any input is High is an ________ gate.

50. The Boolean expression A+A = ___________.

-- ALL THE BEST--