
functions
Authored by THAMARAI B
Computers
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 is a function in C?
A block of code that performs a specific task
A data structure used to store values
A type of variable
A loop that repeats certain actions
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct syntax to call a function in C?
call function_name;
function_name();
call function_name();
function_name[];
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare a function prototype in C?
function_name();
void function_name;
return_type function_name(parameter_list);
function_name(parameter_list)
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
#include <stdio.h>
void greet() {
printf("Hello, World!\n");
}
int main() {
greet();
return 0;
}
Hello, World!
Error
NULL
0
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default return type of a function in C if not specified?
int
void
char
float
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following functions is not a standard library function in C?
A)
B)
C)
D)
printf()
scanf()
print()
strlen()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you pass an argument to a function in C?
Using a variable
Using a pointer
Using a function call
Both A and B
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
10 questions
Tree and Planar Graph
Quiz
•
University
10 questions
CodeMonkey for B.Ed IT
Quiz
•
University
10 questions
Câu hỏi về thiết bị máy tính
Quiz
•
7th Grade - University
10 questions
TOOLS FOR AD & TECHNOLOGY DEVELOPMENT (W4-W6)
Quiz
•
University
10 questions
Teste 1 - Inteligência Artificial
Quiz
•
University
10 questions
Understanding Email, Contacts and Calendaring
Quiz
•
University
10 questions
Tes Awal Modul 5 CC
Quiz
•
University
10 questions
Logika Fuzzy
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
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
20 questions
Figurative Language Review
Quiz
•
6th Grade