Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

20 Which of the following is a User-defined data type? 21 | The forrnat identifi

ID: 3601334 • Letter: 2

Question

20 Which of the following is a User-defined data type? 21 | The forrnat identifier %e is also used for-_, data type? 22 What is the size of an array name[10] of int data type? Assume int size is 2 bytes (a) int (c) pointer (b) float (d) link list (a) int (c) char (b) float d) string (a) 10 (c)30 (b) 20 (d) 40 23 Which of the datatypes have size that is variable? 24 Which of the following declaration is not supported by C? 25 What will be the output of the C program? (a) int (c) structure (b) double d) array (a) char name (c ) char name(20) (b) char * string (d) Boolean Int "age - null; "age = 20 ; Printf("%d",age) ; (b) memory address (a) 20 (c) run time error (d) compile time error 26 Result of a logical or relational expression in Cis (a) Tue or False (c) a and b answers (b) 0 or 1 (d) none of the above 27 | When float is converted to int, the value is? (b) rounded (a) Truncated (c) depend in the compiler (d) depend in the C standard 28 Which keyword can be used for coming out of for loop 29 Which keyword can be used for coming out of a function? 30 The keyword "continue, cannot be simply used within: (a) continue (b) break exit return (a) continue (b) break exit return (a) while loop (c ) do while loop (b) for loop (d) if statement

Explanation / Answer

20. (d) link list
21. (c) char
22. (b) 20
23. (a) int
24. (d) Boolean
25. (d) compile time error
26. (b) 0 or 1
27. (a) Truncated
28. (b) break
29. (c) return
30. (d) if statement
31. (a) Network
32. (a) 20
33. (a) 2, 6, 15
34. (b) consecutive
35. (b) 13
36. (a) int num[6] = {2, 4, 12, 5, 45, 5};
37. (b) .