
Basics of C Programming
Authored by Kennedy Onyango
Information Technology (IT)
12th Grade
Used 1+ 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
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.
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?
Similar Resources on Wayground
12 questions
PRUEBA 3RO BGU
Quiz
•
12th Grade
10 questions
3 EM ROCHA Leis de Ohm circuito eletrico
Quiz
•
12th Grade
13 questions
Algoritmica
Quiz
•
1st Grade - University
10 questions
POST TEST-INFORMATIKA-X-5
Quiz
•
10th Grade - University
10 questions
Digital Literacy Quiz
Quiz
•
7th - 12th Grade
10 questions
Business Analytics Quiz
Quiz
•
12th Grade
14 questions
Innovation and Business Concepts
Quiz
•
12th Grade
10 questions
Animation Techniques Quiz
Quiz
•
10th Grade - University
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade
10 questions
Valentine's Day: History and Modern Celebration
Interactive video
•
9th - 12th Grade
11 questions
Valentine's Day Trivia
Quiz
•
8th - 12th Grade
10 questions
Factor Quadratic Expressions with Various Coefficients
Quiz
•
9th - 12th Grade
18 questions
Success Strategies
Quiz
•
9th - 12th Grade
10 questions
Valentine's Day Trivia
Quiz
•
9th - 12th Grade