Quiz 2 - loops, array, pointers, functions

Quiz 2 - loops, array, pointers, functions

Professional Development

10 Qs

quiz-placeholder

Similar activities

PDS - 04225 Pointers & Dynamic Arrays - Chapter 8

PDS - 04225 Pointers & Dynamic Arrays - Chapter 8

University - Professional Development

10 Qs

หน่วยที่ 6 โปรแกรมควบคุมการทำงาน

หน่วยที่ 6 โปรแกรมควบคุมการทำงาน

Professional Development

10 Qs

Skill Development - Debugging Practice1

Skill Development - Debugging Practice1

10th Grade - Professional Development

10 Qs

JavaScript. Тест для учащихся

JavaScript. Тест для учащихся

Professional Development

10 Qs

L1_W5_Time_Machine

L1_W5_Time_Machine

Professional Development

11 Qs

SDA Java Podstawy 1

SDA Java Podstawy 1

Professional Development

6 Qs

Minecraft

Minecraft

1st Grade - Professional Development

13 Qs

Arduino 001

Arduino 001

2nd Grade - Professional Development

8 Qs

Quiz 2 - loops, array, pointers, functions

Quiz 2 - loops, array, pointers, functions

Assessment

Quiz

Computers

Professional Development

Easy

Created by

Nagaratna Harikant

Used 2+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  • Which of the following is the correct way to declare a function in C?

function_name(return_type parameter_list);

return_type function_name(parameter_list);

function_name return_type(parameter_list);

return_type (parameter_list) function_name;

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  • Which of these is used to define a function without arguments in C?

void func()

void func(void)

void func(arguments)

void func(int x)

3.

FILL IN THE BLANK QUESTION

45 sec • 1 pt

  • Fill in the blanks : What is the default return type of a function in C if not explicitly specified?

4.

MULTIPLE CHOICE QUESTION

30 sec • Ungraded

  • Which of the following loops guarantees execution at least once?

for loop

do while loop

while loop

None

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  • In a for loop, which part is executed only once at the beginning of the loop?

Condition

Initialization

Increment/Decrement

Loop body

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  • Which operator is used to get the address of a variable in C?

*

&

->

.

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

void main() 

    int i = 3, *j, k; 
    j = &i; 
    printf("%d\n", i * *j * i + *j); 
}

27

3

9

30

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?