
C Programming Challenge
Authored by rudra goynar
Information Technology (IT)
University
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 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.
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
8 questions
Quiz sobre P5.js e JavaScript
Quiz
•
1st Grade - University
10 questions
ԹԳՀԳ
Quiz
•
7th Grade - University
10 questions
học Quản Trị Tri Thức chưa người đẹp??
Quiz
•
University
11 questions
TRẢ LỜI ĐÚNG - TRÚNG QUÀ COOL
Quiz
•
University
10 questions
MongoDB Concepts 2
Quiz
•
University
10 questions
Test Informatica. Informatia clasa 7
Quiz
•
7th Grade - University
10 questions
UDE2025-BD01
Quiz
•
University
15 questions
ISP and Data Packets Part 2
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Information Technology (IT)
7 questions
How James Brown Invented Funk
Interactive video
•
10th Grade - University
5 questions
Helping Build the Internet: Valerie Thomas | Great Minds
Interactive video
•
11th Grade - University
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
19 questions
Review2-TEACHER
Quiz
•
University
15 questions
Pre2_STUDENT
Quiz
•
University
20 questions
Ch. 7 Quadrilateral Quiz Review
Quiz
•
KG - University