Computer Knowledge - MCQ Practice Questions
Practice free Computer Knowledge multiple-choice questions with detailed answers and explanations. Perfect for competitive exam preparation.
309 questions | 100% Free
Which of the following is a valid variable name in C?
What is the return type of the strlen() function?
Which operator has the highest precedence in C?
In C, a pointer variable stores which of the following?
What is the purpose of the malloc() function in C?
Which of the following correctly initializes an array of 5 integers?
What is the default return type of a function in C if not explicitly specified?
What does the break statement do in a loop?
Which of the following is used to access members of a structure using a pointer?
In C, what is the purpose of the #define directive?
What is the correct way to declare a function that takes no parameters and returns an integer?
What will be the output of: int x = 5; printf("%d", ++x);?
Consider a pointer ptr pointing to an integer array. What does ptr[2] represent?
What is the time complexity of searching for an element in an unsorted array using linear search?
What will be the result of executing: int a = 5, b = 10; int *ptr = &a; ptr = &b; printf("%d", *ptr);?
Which of the following statements about static variables is TRUE?
What is the size of an integer variable in most modern C compilers?
Which of the following is NOT a valid C data type?
What is the purpose of the & operator in C?
Which keyword is used to create a constant variable in C?