iGET

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

Q.21Easy

What is the purpose of the break statement in a loop?

Q.22Easy

In C programming, which of the following is NOT a valid data type?

Q.23Easy

What will be the output of: int a = 10; int b = 20; int c = a + b; printf("%d", c);?

Q.24Easy

Which of the following is used to declare a constant in C?

Q.25Easy

What is the purpose of the return statement in a C function?

Q.26Easy

Which header file is required for using the printf() function?

Q.27Easy

What is the correct syntax to declare a constant in C?

Q.28Easy

Which operator is used to access the value at an address in C?

Q.29Easy

What does the sizeof() operator return?

Q.30Easy

Which of the following is a correct way to initialize a 1D array in C?

Q.31Easy

What is the size of an empty structure in C?

Q.32Easy

What will be the output of: char *s = "Hello"; printf("%d", strlen(s));

Q.33Easy

What will be the output of: #define MAX 10; int x = MAX; printf("%d", x);

Q.34Easy

Which of the following correctly initializes a 2D array?

Q.35Easy

What will be the output of: printf("%d", );

Q.36Easy

What does the getchar() function do?

Q.37Easy

What will be the output of: int a = 5, b = 5; if(a == b) printf("Equal"); else printf("Not Equal");

Q.38Easy

Which header file is essential for using the printf() function in C?

Q.39Easy

Which of the following is a correct way to declare a pointer to an integer in C?

Q.40Easy

What is the output of the following code: printf("%d", sizeof(int));