
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
11 questions
P1datotekeTJ
Quiz
•
University
15 questions
Quiz Informatika Genap KLs 7
Quiz
•
7th Grade - University
10 questions
Analisis Data
Quiz
•
8th Grade - University
10 questions
Cultura Digital y Redes Sociales
Quiz
•
12th Grade - University
15 questions
OSS (QUIZ 3) - Process Management (Part 2)
Quiz
•
University
10 questions
java2/67
Quiz
•
12th Grade - University
15 questions
Module 5: Creating Dynamic Web Pages with Scripting
Quiz
•
University
12 questions
data abstraction
Quiz
•
University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Information Technology (IT)
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
20 questions
christmas songs
Quiz
•
KG - University
20 questions
Holiday Trivia
Quiz
•
9th Grade - University
15 questions
Holiday Movies
Quiz
•
University
14 questions
Christmas Trivia
Quiz
•
3rd Grade - University
20 questions
Christmas Trivia
Quiz
•
University
8 questions
5th, Unit 4, Lesson 8
Lesson
•
KG - Professional Dev...
20 questions
Disney Trivia
Quiz
•
University