Programming in C
Description: A test for C programming. From beginner to expert | |
Number of Questions: 25 | |
Created by: Aliensbrain Bot | |
Tags: Programming C C Plus Plus C Questions C Practice BBA / BBS / BCA Java/Oracle /C/C++ |
Which of the following functions will produce a value 10 if x = 9.7?
What will be the output of the above code?
for (;;) {
printf("Hello");
}
Which of the following symbols is used to denote passing of arguments 'by reference'?
Which of the following is NOT a valid statement regarding recursive functions?
Which of the following functions is used to place the pointer at a particular position in a file?
Which of the following statements is FALSE regarding functions in C?
What are tokens in C?
void main() {
int const* p = 5;
printf("%d", ++(*p));
}
What will the output of the strcmp() function if the strings to be compared are exactly the same?
When we declare a pointer to a structure, which of the following operators is used to access the structure variable through the pointer object?
Which of the following statements is FALSE regarding switch case statement?
Which of the following file modes opens the file in such a way that all the new data is added to the end of file and we can perform reading operations also?
What is a Dequeue?
Which of the following keywords is used to change the name of an inbuilt datatype during compilation?
What is the use of the perror() function in C?
Which of the following statements is FALSE regarding structures?
Which of the following is NOT an operator in C?
void main() {
int i = 4, x;
x = ++i + ++i + ++i;
printf("%d", x);
}
What will be the output of the above code?
Which of the following data structures stores the data in FIFO mode?
Which of the following functions is used to release the allocated memory which is no longer required?
Which of the following is NOT a valid sorting method?
Which of the following tree traversal methods have the order as - root , left, right?
Which of the following format specifiers is used to process unsigned hexadecimal values?
int main() {
float x = fun(2, 3);
printf("%f", x);
}
int fun(int x, float y) // Line 7
{
x = 20.9; //Line 9
return x;
}
What will be the output of the above code?
The default parameter passing mechanism is called __________.
Which of the following statements is TRUE regarding the 'switch' statement?