Inter School Robotics C Coding Functions

Inter School Robotics C Coding Functions

6th - 8th Grade

7 Qs

quiz-placeholder

Similar activities

Урок 10

Урок 10

8th Grade

12 Qs

Python for Beginners

Python for Beginners

6th - 12th Grade

9 Qs

Python Introduction Simple

Python Introduction Simple

6th - 12th Grade

9 Qs

7 сынып информатика

7 сынып информатика

7th Grade

10 Qs

Python for Class 7

Python for Class 7

7th - 8th Grade

11 Qs

Java Quiz 3: Object-Oriented Programming Concepts

Java Quiz 3: Object-Oriented Programming Concepts

6th - 12th Grade

8 Qs

Թեմատիկ աշխատանք N 2

Թեմատիկ աշխատանք N 2

1st - 10th Grade

10 Qs

Basic Python Coding

Basic Python Coding

6th - 12th Grade

9 Qs

Inter School Robotics C Coding Functions

Inter School Robotics C Coding Functions

Assessment

Quiz

Computers

6th - 8th Grade

Medium

Created by

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