July 7, 2021 in C and CPP
Write a C program to read a line and print it reverse using recursive function.
a) Write a C program to read a line and print it reverse using recursive function.
July 7, 2021 in C and CPP
a) Write a C program to read a line and print it reverse using recursive function.
July 7, 2021 in C and CPP
A. Bit B. header file C. fseekf
D. call by value E. static F. exit
G. index H. stdio.h I. break
J. Ctype.h K. unstructured L. getc
M. pointer
4.1 An array element is accessed using an ________ number.
4.2 NULL is macro constant which has been defined in the header file ________.
4.3 Function ________ repositions the file position pointer to the beginning of the file.
4.4 A library function ________ causes an exit from the program in which it occurs.
4.5 The ________ statement causes an exit from the innermost loop or switch.
4.6 ________ data member can only be used in static functions.
4.7 ________ cannot be legitimately passed to a function.
4.8 The smallest data item a computer can process is called a(n) ________.
4.9 A function call mechanism that passes arguments to a function by passing a copy of the
values of the arguments is ________.
4.10 Name the header file to be included for the use of built in function isalnum() is ________.
July 7, 2021 in C and CPP
2.1 Functions can be called either by value or reference.
2.2 Comma operator is used for separation.
2.3 The size of a structure can be determined by both size of variable name and size of (struct tag).
2.4 While loop is post tested loop.
2.5 All of the following are valid expressions in C.
a = 2 + (b = 5);
a = b = c = 5;
a = 11 % 3;
2.6 A variable is a string that varies during program execution.
2.7 void (*ptr)() is a pointer to a function which receives nothing and returns nothing.
2.8 Calling a uninitialized variable will provide zero value.
2.9 C language cannot be used for database manipulation.
2.10 In the expression a=b=5 the order of Assignment is NOT decided by Associativity of
operators.
July 7, 2021 in C and CPP
1.10 How many times is a do while loop guaranteed to loop?
A) 0
B) Infinitely
C) 1
D) Variable
July 7, 2021 in C and CPP
1.9 Which of the following cannot be used as identifiers?
A) Spaces
B) Digits
C) Underscores
D) Letters
July 7, 2021 in C and CPP
1.8 What is the similarity between a structure, union and enumeration?
A) All of them let you define new values
B) All of them let you define new data types
C) All of them let you define new pointers
D) All of them let you define new structures
July 7, 2021 in C and CPP
1.7 The keyword used to transfer control from a function back to the calling function is
A) switch
B) goto
C) go back
D) return
July 7, 2021 in C and CPP
1.6 The result of a Relational operation is always
A) either True or False
B) is less than or is more than
C) is equal or less or more
D) All of the above
July 7, 2021 in C and CPP
1.5 When following piece of code is executed, what output will be generated?
#include<stdio.h>
int main(){
char arr[7]="Network";
printf("%s", arr);
return 0; }
A) Network
B) N
C) Garbage value
D) Compilation error
July 7, 2021 in C and CPP
1.4 What do the following declaration signify? void *cmp();
A) cmp is a pointer to an void type.
B) cmp is a void type pointer variable.
C) cmp is a function that return a void pointer.
D) cmp function returns nothing.