c language online test - Quiz Questions (Page 2 of 2)
This quiz contains 20 questions.
Question 11: Which library is used for input/output operations?
- <stdio.h> (Correct Answer)
- <io.h>
- <stdlib.h>
- <input.h>
Question 12: What does 'sizeof' operator do?
- Returns the size of a variable (Correct Answer)
- Compares sizes
- Deletes memory
- Sorts arrays
Question 13: What is a struct in C?
- A data structure (Correct Answer)
- A type of loop
- A function
- A pointer type
Question 14: Which of these is a looping statement in C?
- do-while (Correct Answer)
- if
- switch
- case
Question 15: How is memory allocated dynamically in C?
- malloc() (Correct Answer)
- allocate()
- store()
- dynamic()
Question 16: What is the output of 15/4 in C?
- 3 (Correct Answer)
- 3.5
- 4
- 15
Question 17: How do you increment a variable in C?
- x++ (Correct Answer)
- x=
- x+
- ++x=
Question 18: Which keyword is used to define an enumerated type?
- enum (Correct Answer)
- typedef
- define
- union
Question 19: How do you declare an array in C?
- int arr[10]; (Correct Answer)
- arr:int[10];
- array of int
- int[10] arr;
Question 20: Which of these is a string function?
- strcpy (Correct Answer)
- append()
- intlen()
- sort()
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