
Inter School Robotics C Coding Functions

Quiz
•
Computers
•
6th - 8th Grade
•
Medium
jana mb
Used 3+ times
FREE Resource
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
Similar Resources on Wayground
10 questions
Программирование C#

Quiz
•
1st - 10th Grade
10 questions
Типы данных

Quiz
•
7th Grade
10 questions
Webdev Backend Level 2

Quiz
•
5th - 8th Grade
10 questions
SQL Statement Part 3

Quiz
•
7th Grade
11 questions
Quiz on variables

Quiz
•
6th - 8th Grade
12 questions
Էլեկտրոնային աղյուսակներ

Quiz
•
1st - 10th Grade
12 questions
Computer Systems - How the web works - Lesson 7

Quiz
•
8th Grade
10 questions
Python-Code Right or Wrong

Quiz
•
7th - 8th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
8 questions
Time Management

Quiz
•
6th Grade
18 questions
Digital Footprint

Quiz
•
6th Grade
20 questions
typing

Quiz
•
6th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade
25 questions
How to Email a Teacher- https://youtu.be/NioeNhfpVfI

Quiz
•
6th - 8th Grade