Answered step by step
Verified Expert Solution
Question
1 Approved Answer
10 Result of a logical or relational expression in C is (a) Tue or False (b) 0 or 1 (c) a and b answers (d)
10 Result of a logical or relational expression in C is (a) Tue or False (b) 0 or 1 (c) a and b answers (d) none of the above 11 The format identifier '%d' is used for data type? (a) int (b) float (c) char (d) string 12 What will be the output when you will execute following c code? int a[5] = {5, 1, 15, 20, 25 ); int i, j, m; i = ++a[1]; = ++a[0]; m = a[i++]; printf("%d, %d %d", i, j, m); (a) 2, 6, 15 (c) 3, 6, 20 (b) 3,6,15 (d) none of the above 13 The value 132.54 can represented using which data type? (a) int (b) char (c) float (d) none strcat() is defined in which header file? (a) ctype.h (b) stdio.h (c) string.h (d) math.h 15 Which notation provides a strict upper bound for f(n)? (a) Omega notation (b) Big O notation (c) Small o notation (d) Theta Notation 16 Array name is a pointer (a) true (b) false 17 An array elements are always stored in memory locations. (a) randomly (b) consecutive (c) stack (d) none of the above 18 What is the output of this C code? char str[] = "hello, world "; printf("%d", strlen(str)); (a) compiler error (c) 12 (b) 13 (d) none of the above
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started