C programming 2

C programming 2

University

16 Qs

quiz-placeholder

Similar activities

Ulangan harian 1 Algoritma dan Pemrograman

Ulangan harian 1 Algoritma dan Pemrograman

12th Grade - University

13 Qs

IngyenCicátMindenPolgárnak

IngyenCicátMindenPolgárnak

University

11 Qs

Lập trình trực quan

Lập trình trực quan

University

15 Qs

PHP QUIZ

PHP QUIZ

University

14 Qs

C Quest 2.0

C Quest 2.0

University

20 Qs

Memahami PBO

Memahami PBO

11th Grade - University

15 Qs

ISPFL8 Endterm Quiz #3

ISPFL8 Endterm Quiz #3

University

20 Qs

PHP First Internal Practical Viva

PHP First Internal Practical Viva

University

20 Qs

C programming 2

C programming 2

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Fatin Awad

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

1. What is the format specifier for printing an integer in C?

%i

%d

%s

%f

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

2. How do you include a header file in C?

<include header.h>

<header.h>

#include "header.h"

include "header.h"

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

3. What is the result of the expression 10 % 3 in C?

0

3

3.33

1

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

4. How do you declare a constant pointer to an integer variable in C?

const * int ptr;

int * const ptr;

const int * ptr;

int const * ptr;

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

5. What is the purpose of the "do-while" loop in C?

To execute a block of code repeatedly until a condition is met

To iterate over the elements of an array

To break out of a loop prematurely

To execute a block of code at least once, then repeatedly until a condition is met

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

7. How do you access a specific element in an array in C?

arr(index)

arr[index]

arr{index}

arr.index

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

8. How do you declare a function pointer in C?

void (*ptr)();

(*ptr)() void;

(*ptr)();

void *ptr();

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?

Discover more resources for Computers