Inter School Robotics C Coding Functions

Inter School Robotics C Coding Functions

6th - 8th Grade

7 Qs

quiz-placeholder

Similar activities

Test vectori Cls 8

Test vectori Cls 8

8th Grade

9 Qs

Scratch - Lesson 2

Scratch - Lesson 2

8th Grade

10 Qs

7 класс. Повторение "Ввод. Вывод. Присваивание"

7 класс. Повторение "Ввод. Вывод. Присваивание"

7th Grade

10 Qs

Predstavi se i prezentiraj

Predstavi se i prezentiraj

8th Grade

10 Qs

TopCardsQuiz01

TopCardsQuiz01

7th Grade

8 Qs

Practice

Practice

6th Grade

12 Qs

Hari 3 - Kuis Coding & Perkenalan AI

Hari 3 - Kuis Coding & Perkenalan AI

8th Grade - University

10 Qs

Operator dan Pemalar

Operator dan Pemalar

8th - 9th Grade

10 Qs

Inter School Robotics C Coding Functions

Inter School Robotics C Coding Functions

Assessment

Quiz

Computers

6th - 8th Grade

Practice Problem

Medium

Created by

jana mb

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?