
C Programming Challenge
Quiz
•
Information Technology (IT)
•
University
•
Easy
rudra goynar
Used 1+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the basic data types available in C?
array
int, float, double, char, void
string
boolean
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Explain the difference between local and global variables in C.
Local variables are declared outside functions; global variables are declared inside functions.
Local variables are function-scoped; global variables are accessible throughout the program.
Local variables can be accessed globally; global variables are limited to functions.
Local variables retain their values between function calls; global variables do not.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare an array in C?
int arr[10];
arr int[10];
int[10] arr;
array int[10];
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the 'void' keyword in a function declaration?
The 'void' keyword is used to indicate a pointer type.
The 'void' keyword specifies the function's return type.
The 'void' keyword allows a function to accept any number of parameters.
The 'void' keyword indicates that a function does not return a value.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you read data from a file in C?
Use printf() to display data directly from the file.
Read data using the read() function without opening the file.
Use fopen() to open the file, then fgets() or fscanf() to read data, and fclose() to close the file.
Close the file before reading any data from it.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a string in C and how is it represented?
A string in C is a single character.
A string in C is a fixed-length integer.
A string in C is a list of numbers.
A string in C is an array of characters ending with a null character ('\0').
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Describe the use of pointers in functions.
Pointers can only be used with arrays.
Pointers prevent functions from accessing global variables.
Pointers are used to create new variables in functions.
Pointers enable functions to modify variables directly and improve efficiency by avoiding data copying.
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
Java_MCQ_3
Quiz
•
University
15 questions
Pemrograman Visual dan Scratch
Quiz
•
7th Grade - University
10 questions
Linked List Quiz
Quiz
•
University
10 questions
untitled
Quiz
•
University
9 questions
Condition Programming Quiz
Quiz
•
1st Grade - University
7 questions
C++ Structuri repetitive
Quiz
•
8th Grade - University
15 questions
uji coba Strategi Algoritma dan Pemrograman
Quiz
•
11th Grade - University
10 questions
Introduction & Basic Program Structure
Quiz
•
University
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
MINERS Core Values Quiz
Quiz
•
8th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
Discover more resources for Information Technology (IT)
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
7 questions
Central Idea of Informational Text
Interactive video
•
4th Grade - University
20 questions
Physical or Chemical Change/Phases
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
39 questions
Unit 7 Key Terms
Quiz
•
11th Grade - University
7 questions
Transition Words and Phrases
Interactive video
•
4th Grade - University
18 questions
Plotting Points on the Coordinate Plane
Quiz
•
KG - University
5 questions
Declaration of Independence
Interactive video
•
4th Grade - University
