Question 1. Which of the following features of Software development is referred to understandability and modifiability? a. Usability b. Correctness c. Maintainability d.

Portability Question 2. Identify the correct order of Software development processes: a. Requirements b. Coding c. Maintenance d. Testing e. Analysis f. Deploying

g. Design

Question 3.

Show the representation of the following values in two’s complement notation:

a. -45 b. -30

Question 4.

Which of the followings is used to store the data that is read by CPU?

a. Address bus b. Control bus c. Data bus d. ALU

RAM Question 5. What is the output of the snippets? Question 6. What is the output of the snippet? Question 8. Control Unit f. What is the output of the snippet? Question 7. What is the output of the snippet? .e.

Question 11. . Question 10. Question 12.Question 9.

produced by the program. Header c. Which of the followings refers to cohesion? a. a record of the changes that occur in the values of program variables as a program executes and b.Question 13. a listing of the output. Function …… describe the form of a function without specifying the implementation details. a. c. Byte b. a measure of the focus within a module b. All output must be considered and tested Question 16. Word . Implementation Question 14. A data table must be prepared d. Nibble c. Prototype b. Body d. Which of the followings are used to describe walkthrough? a. a measure of the degree of interrelatedness of a module to its referring module(s) Question 15. if any. Which of the followings is a concept that consists 4 bits? a.

What is the difference between a variable and a constant? Question 21. 0x123 b.Question 17. Which of the followings is identified as the octal representation in the C language? a. 123 Question 19. Big endian Question 20. Variable is a name reference to a data location? a. What is escape sequence? When are these sequences required? . Little endian b. False Question 18. 0123 c. True b. Identify the type of representation of integral value in the figure? a.

printf(“%d”. } printf(“ = %d”. ++fag.x=0. & i). Can we use switch statement be used in this instance? Question 24. Explain all compound statement that appear in the following program: int sum = 0. Describe output generated by following C programs: #include main() { int i=0.x). } while (i != 0). } . } sum = sum + i. if (i < 0) { i = -i. Explain the output of following statement: If (abs(z) < zmin ) ) z= (z>0)? Zmin:-zmin. fag. What are rules for naming identifiers? Can we include digits? Is lowercase equivalent to uppercase? How many characters can be included in an identifier name? Are all characters equally significant Question 23. Question 25.x). i. do { scanf("%d".Question 22. while (i<20) { if (i% 5==0) { x+=i. } ++i.

9. Identify error if any in the following declaration statements: 1.x=0.b).a<10. printf(“ x= %d”.a<10:++a) b+=c[a]. for(a=0. } while (i<20).x).3.6.0} for(a=0. 5. } b.4.++a) if((c[a]%2)==0) b+=c[a]. int count(100).9.3. char name[30].5. float avg[row].5.main() { int i=0. printf(“%d”.7. 4. } ++i. 2. } Question 26. .2. int sum[].b =0.8.15] 3.[column].8. Question 27. int c[10]={1.x). do { if(i%5==0) { x++.4. printf(“%d”. main() { int a. float value[5.6.2. int c[10] ={ 1. What will be the output of the following program segments? a.7.0}. Main() { int a.b=0.

b. d. b. 50 50 50 Compile Time Error 10 10 10 Three Gaebage Value Question 32. c. ++ % + || Question 29. d. b. c. a=b=c=50. b. d. } a. Which format specifier is used to print the values of double type variable a. d.a.c). } ) Question 28. c. Which pair of functions below are used for single character I/O ? a. d. c. Which operator has the lowest priority ? a. getchar() getch() getche() Both (B) and (C) Question 31. c. What is the output of this program ? void main() { int a=b=c=10. %If %Id %Iu %f . printf(“\n %d %d %d”. Which function is used to read character as you type ? a. getchar() and putchar() scanf() and printf() input() and output() Non of these Question 30.b.pritf(“%d”. b.b).

What will be the output of the following program? void main( ) { int x []= {10. b. } a. printf (“\n r=%d”.50}.x[2] . d. printf (“ \n %s”. copies s1 string into s2 b. INFO . s2 ). auto register int function Question 37. } a. What will be the out put ? void main ( ) { char a[] = “INFO” .Question 33. Which of the following is not s keyword of „C‟ ? a. r). a). d. None of these Question 35. c. x [4] . d. print f (“ \n %d %d %d %d “. What the follwing function call mean? strcpy(s1 . a + +. Error 10 20 30 40 50 50 40 30 20 10 None of these Question 36. b.3[x] . b. c. c. r= x%5. What will be the output of the following program? void main ( ) { double x=28.40. copies s2 string into s1 c.30.1[x] . copies both s1 and s2 d. int r. a.20. Error b. } a. r= 3 Run time Error Compile time Error None of the Above Question 34.x[0] ).

} Question 42. b. a++. What will be the value of the variable a. on the execution of the above program a.). NFO d. int char void None of these Question 40. c. a . x). x = printf(“I See. for ( . d. d. b. d. } a. None of these Question 38. What will be the value of x after executing the program ? void main ( ) { int x. Sea in C”). b. SQUARE(10+2) ). printf(“\n x= % d” .c. Square = 144 Square =32 Square =122 Square =12 Question 39. By default a function returns a value of type a. } a. 1 0 –1 None of these . c. What will be the output ? #define SQUARE(X) X * X void main ( ) { printf (“\n Square = %d” . b. Study the following C program void main ( ) { int a= 0. d. c. c. x= 15 x=2 Garbage value Error Question 41.

What will be the output of the following program code ? void main ( ) { char a[]= “Hello World” . b.Question 43.b None of these Question 45. b. c. b.‟B‟ < „A‟ ). The meaning of arrow operator in a->b a. c. stren (a). printf(“\n%d%d%d%d”. d. strpbrk strlen strxfrm strcut Question 47. b. c.(*b) a. } a. char *p . sizeof(p). 11 11 10 10 10 10 10 10 12 12 11 11 12 2 11 11 Question 44.sizeof(a). d. strlen(p) ). c. c. Which is valid string function ? a. } a. d. d. What will be the output ? void main ( ) { printf(“%d”. d.b a. b. p=a. ( *a). What will be the output of the following program code? void main ( ) { printf (“\n ABC\b\b\bInfo World”). Info world ABC Info world strxfrm strcut Question 46. Error 1 0 None of these . } a.

c.Question 48. a. x is a pointer to pointer x is not pointer x is long None of these . int **x. b. d.