
Module 1_Introduction to C Programming
Authored by Shruthi S
Engineering
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a valid C variable name?
int number
float rate
int variable_count
int $main
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is #include <stdio.h>?
Preprocessor directive
Inclusion directive
File inclusion directive
None of the mentioned
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the sizeof(char) in a 32-bit C compiler?
1 bit
2 bits
1 Byte
2 Bytes
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
scanf() is a predefined function in______header file.
stdlib. h
ctype. h
stdio. h
stdarg. h
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
#include <stdio.h>
int main()
{
int y = 10000;
int y = 34;
printf("Hello World! %d\n", y);
return 0;
}
#include <stdio.h>
int main()
{
int y = 10000;
int y = 34;
printf("Hello World! %d\n", y);
return 0;
}
Compile time error
Hello World! 34
Hello World! 1000
Hello World! followed by a junk value
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
#include <stdio.h>
void main()
{
int x = 5 * 9 / 3 + 9;
}
#include <stdio.h>
void main()
{
int x = 5 * 9 / 3 + 9;
}
3.75
Depends on compiler
24
3
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many keywords are there in C Language ?
30
22
32
36
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?