c language online test - Quiz Questions (Page 1 of 2)
This quiz contains 20 questions.
Question 1: What symbol is used to end a statement in C?
- }
- ; (Correct Answer)
- /
- !
Question 2: What is the correct data type for a 10.5 value?
- double (Correct Answer)
- char
- int
- string
Question 3: Which keyword is used to start a function in C?
- function
- void (Correct Answer)
- start
- define
Question 4: How do you declare a variable in C?
- int x; (Correct Answer)
- x : int;
- int x
- declare x;
Question 5: What is a pointer in C?
- A variable that stores a memory address (Correct Answer)
- A number
- A type of function
- A string
Question 6: What keyword is used to return a value from a function?
- return (Correct Answer)
- break
- continue
- stop
Question 7: What function is used to print text in C?
- print()
- printf() (Correct Answer)
- cout
- display()
Question 8: How do you define a constant in C?
- const int
- int const
- const int x; (Correct Answer)
- constant int
Question 9: Which symbol is used for comments in C?
- // (Correct Answer)
- ##
- <!--
- **
Question 10: What is the correct syntax for the main function?
- main(){}
- int main(){} (Correct Answer)
- main(int)
- start()
This C Language online test checks your basic programming skills. It covers important parts like syntax, functions, data structures, and simple algorithms. This quiz is a handy tool for both students and professionals in India to see how well they know C language. Give it a try and see where you can improve!
✓
0/0
0%
Correct
0
Incorrect
0
Time
0:00