
Basics of C Programming

Quiz
•
Information Technology (IT)
•
12th Grade
•
Medium
Kennedy Onyango
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does C stand for in C programming?
C#
C Language
C
C++
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the main() function in a C program?
The main() function is responsible for memory allocation.
The main() function is used for defining global variables.
The main() function is the entry point of a C program.
The main() function is where all the functions are declared.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare a variable in C?
declare int x;
int x = new;
var x int;
To declare a variable in C, use the syntax: type variable_name; (e.g., int x;).
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between int and float in C?
int is a type of float, representing larger numbers.
float is used for character data, while int is for numeric data.
int can store decimal values, while float cannot.
int represents whole numbers, while float represents numbers with decimal points.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a pointer in C?
A pointer is a type of function in C.
A pointer is a variable that stores a string in C.
A pointer is a variable that holds the address of another variable in C.
A pointer is a special kind of loop in C.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a comment in C code?
Use '//' for single-line comments and '/* ... */' for multi-line comments.
Use '#' for comments
Use '/*' for single-line comments
Use '//' for multi-line comments
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the use of the #include directive?
To comment out sections of code.
To execute a function from a library.
To define a variable in the source code.
To include the contents of a file or library in the source code.
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Викторина по языку программирования Си

Quiz
•
12th Grade
15 questions
Bài 27

Quiz
•
10th Grade - University
10 questions
Uji Pemahaman Berpikir Komputasioal

Quiz
•
8th Grade - University
10 questions
Sequencing Blockly - 2

Quiz
•
7th Grade - University
15 questions
Quiz sur le langage PHP

Quiz
•
12th Grade
15 questions
C Programming MCQ Quiz

Quiz
•
12th Grade
10 questions
Sumatif 2

Quiz
•
12th Grade
10 questions
Основи на програмирането с C#

Quiz
•
12th Grade
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
11 questions
NFL Football logos

Quiz
•
KG - Professional Dev...
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
29 questions
CCG 2.2.3 Area

Quiz
•
9th - 12th Grade
15 questions
PRESENTE CONTINUO

Quiz
•
9th - 12th Grade
13 questions
BizInnovator Startup - Experience and Overview

Quiz
•
9th - 12th Grade
16 questions
AP Biology: Unit 1 Review (CED)

Quiz
•
9th - 12th Grade