
Basic C test
Created on 29th October 2024
Grade level: A1 - Beginnerth grade
1 plays
10 Questions
No Description
Questions (10)
1. What is the correct way to declare a variable in C?
int num;
4 choice options
2. Which symbol is used to end a statement in C?
;
4 choice options
3. What is the output of 'printf("Hello World");' in C?
Hello World
4 choice options
4. Which of the following is a valid function declaration in C?
void myFunction() {}
4 choice options
5. What data type is used for decimal numbers in C?
float
4 choice options
6. How do you write a comment in C?
// This is a comment
4 choice options
7. Which of the following is a loop in C?
for
4 choice options
8. What is the correct way to include a library in C?
#include <stdio.h>
4 choice options
9. What is the main function in a C program?
int main()
4 choice options
10. Which operator is used for addition in C?
+
4 choice options