
Inter School Robotics C Coding Functions
Quiz
•
Computers
•
6th - 8th Grade
•
Practice Problem
•
Medium
jana mb
Used 3+ times
FREE Resource
Enhance your content in a minute
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A function in C allows the programmer to reuse a block of code.
TRUE
FALSE
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The function name of a function is case sensitive (i.e. capital and common letters are important) in C.
TRUE
FALSE
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Is this this extract of C code from a function correct?
int arr(int x, y)
TRUE
FALSE
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax for the function 'nums' that accepts two parameters and returns the sum?
void nums(int x, int y){
int sum= x+y;
return sum;
}
int nums(int x, int y){
int sum= x+y;
return sum;
}
void nums(int x, y){
int sum = x+y;
}
int Nums(int x, int y){
int sum= x+y;
return sum;
}
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax for a snippet of C code to prompt the user to enter information into the program?
print("Enter age:");
scan(age);
printf(Enter age:);
scanf(%d, &age);
printf("Enter age:");
scanf("%d, &age");
printf("Enter age:");
scanf("%d", &age);
6.
FILL IN THE BLANK QUESTION
1 min • 1 pt
There are THREE main types of loops that can be used in a C program: For Loop, While Loop, and...
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
An array 'arr' in C has to store 10 numbers from 1 to 10, what is the index (location) of the array AND the number stored in the THIRD location?
int arr[10];
index: 3
number: 3
index: 2
number: 3
index: 3
number: 2
index: 2
number: 2
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
AN.DATA
Quiz
•
7th Grade
10 questions
kiểm tra 15 phút tin 7
Quiz
•
6th - 9th Grade
11 questions
Execl Quiz
Quiz
•
7th Grade - University
10 questions
Post Tes Quiz Pembuatan Tabel dan Fungsi Dasar MS.Excel
Quiz
•
7th Grade
10 questions
Arduino
Quiz
•
7th - 12th Grade
10 questions
TIK kelas 6
Quiz
•
6th Grade
12 questions
Опрацювання текстових величин мовою програмування.
Quiz
•
8th Grade
10 questions
ทบทวนก่อนสอบ ม.1 เทคโนโลยี
Quiz
•
7th Grade
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
