C programming review Quiz

Quiz
•
Other
•
9th Grade
•
Medium
Saniha Jackson
Used 1+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct syntax to print in C?
A. print("Hello");
B. echo("Hello");
C. printf("Hello");
D. cout << "Hello"
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct header file to use printf() and scanf()?
A. <conio.h>
B. <stdio.h>
C. <string.h>
D. <stdlib.h>
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default return type of a function if not specified in C?
A. void
B. char
C. int
D. float
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct variable name in C?
A. value_1
B. value#
C. 1value
D. @value
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which loop checks the condition after executing the loop body?
A. for
B. while
C. switch
D. do...while ✅
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type is used to store a single character?
A. int
B. char
C. float
D. string
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of x after this code?
int x = 5;
x += 2;
A. 7 ✅
B.10
C. 5
D. 2
Create a free account and access millions of resources
Similar Resources on Wayground
13 questions
TATABAHASA PT3

Quiz
•
KG - Professional Dev...
10 questions
PE Theory F1 (Sports Nutrition)

Quiz
•
7th - 9th Grade
12 questions
Chapter 12 Infectious Diseases

Quiz
•
9th Grade
13 questions
Transformaciones lógicas

Quiz
•
9th Grade
16 questions
Şiir Bilgisi

Quiz
•
9th - 12th Grade
10 questions
Razonamiento condicional CB

Quiz
•
9th Grade
14 questions
Naye ilake,Kushbu Rachtey hai haath( kavita class-9)Hindi

Quiz
•
9th Grade
10 questions
visualisasi Data

Quiz
•
9th - 12th Grade
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
Appointment Passes Review

Quiz
•
6th - 8th 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
20 questions
Grammar Review

Quiz
•
6th - 9th Grade
Discover more resources for Other
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Lab Safety and Lab Equipment

Quiz
•
9th - 12th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade
24 questions
Scientific method and variables review

Quiz
•
9th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
6 questions
Secondary Safety Quiz

Lesson
•
9th - 12th Grade
20 questions
Biomolecules

Quiz
•
9th Grade