Demo C programming

Quiz
•
Computers
•
Professional Development
•
Easy

Hemant Kumar
Used 7+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
What will the following code snippet display?
int x = 10;
printf("%d", x);
10.0
"10"
10
Error
2.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
Which data type is used to store whole numbers in C?
char
double
int
float
3.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
What is the purpose of the printf function in C?
To read user input
To print text on the screen
To declare variables
To create loops
4.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
What is the main advantage of using functions in C?
5.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
What is the purpose of the return statement in a function in C?
6.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
Which of the following is not a valid C keyword?
7.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
Which header file should you include in a C program to use the printf and scanf functions?
string.h
conio.h
math.h
stdio.h
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Cloud Computing

Quiz
•
University - Professi...
10 questions
C Programming

Quiz
•
Professional Development
10 questions
C Programming

Quiz
•
Professional Development
15 questions
C Language Quiz-1

Quiz
•
University - Professi...
10 questions
vectores,matrices,funciones

Quiz
•
Professional Development
10 questions
GIM C 3

Quiz
•
Professional Development
10 questions
Moringa JavaScript Arrays

Quiz
•
5th Grade - Professio...
10 questions
Quiz 2 - loops, array, pointers, functions

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
15 questions
Fun Random Trivia

Quiz
•
Professional Development
22 questions
Anne Bradstreet 1612-1672

Quiz
•
Professional Development
18 questions
Spanish Speaking Countries and Capitals

Quiz
•
KG - Professional Dev...
14 questions
Fall Trivia

Quiz
•
11th Grade - Professi...
15 questions
Disney Characters Quiz

Quiz
•
Professional Development
15 questions
Quiz to Highlight Q types & other great features in Wayground

Quiz
•
Professional Development