Exam

Exam

University

12 Qs

quiz-placeholder

Similar activities

TOEFL Structure (Problems with Subject/Verb Agreement)

TOEFL Structure (Problems with Subject/Verb Agreement)

9th Grade - Professional Development

10 Qs

I love my job!

I love my job!

6th Grade - Professional Development

17 Qs

START WITH DSD

START WITH DSD

University

10 Qs

TOEFL Structure (Skills 1-48)

TOEFL Structure (Skills 1-48)

9th Grade - Professional Development

10 Qs

Physiological psychology

Physiological psychology

University

17 Qs

The Teacher and the Community, School Culture and Organizational

The Teacher and the Community, School Culture and Organizational

University

15 Qs

Collective Bargaining

Collective Bargaining

University

10 Qs

Module 1-Flow Control_5th_Semseter

Module 1-Flow Control_5th_Semseter

University

10 Qs

Exam

Exam

Assessment

Quiz

Education

University

Hard

Created by

Gracjan Kątek

FREE Resource

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the syntax for declaring a function in C?

funcName();

void funcName();

functionName;

funcName(void);

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to initialize an integer variable in C?

int x = 10;

integer x = 10;

x = 10;

int x;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used to access the value at a given memory address in C?

*

&

#

$

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the break statement in a switch statement in C?

To exit the loop.

To skip the current iteration.

To terminate the program.

To exit the switch statement.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code snippet in C?

printf("%d", sizeof("Hello"));

5

6

10

Compiler error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the continue statement in a loop in C?

To exit the loop.

To skip the current iteration.

To terminate the program.

To restart the loop.

7.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What is the correct format specifier to print a single character in C?

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?