C Programming - Medium

C Programming - Medium

10th Grade - University

10 Qs

quiz-placeholder

Similar activities

Soal Latihan Materi PPPK PGSD terbaru bagian 6

Soal Latihan Materi PPPK PGSD terbaru bagian 6

7th Grade - University

10 Qs

Kuis Farmasi Rumah Sakit & Matrikulasi PSPA 34

Kuis Farmasi Rumah Sakit & Matrikulasi PSPA 34

University

10 Qs

Kuis KD 3.3 Menerapkan asesmen keamanan pangan

Kuis KD 3.3 Menerapkan asesmen keamanan pangan

10th Grade

10 Qs

K3 Pelayanan Kesehatan Kerja

K3 Pelayanan Kesehatan Kerja

University - Professional Development

10 Qs

Forragicultura II

Forragicultura II

University

12 Qs

嬰幼兒發展5-2章

嬰幼兒發展5-2章

10th - 12th Grade

15 Qs

Intermediación Financiera, Productos Financieros y Ley 26702

Intermediación Financiera, Productos Financieros y Ley 26702

University

10 Qs

OGT Todos

OGT Todos

University

14 Qs

C Programming - Medium

C Programming - Medium

Assessment

Quiz

Professional Development

10th Grade - University

Easy

Created by

Szymon Tokarski

Used 5+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Whether C code will compile without main() function?

Yes

No

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Format specifier for size_t is:

%s

%p

%zu

%ld

%i

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is output of this code:


#include <stdio.h>


int main(){

int y = 3;

printf("%d %d %d",y,y,y++,++y);

}

3 3 3

5 5 4

3 3 4

4 4 5

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is output of this code:


#include <stdio.h>

#define ARR_SIZE 10

int main(){

int arr[ARR_SIZE] = {-1};

int *ptr1 = &(arr[0]), *ptr2 = &(arr[4]);

printf("%p",ptr2-ptr1);}

4

Compile Error

0x4

0x16

16

5.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Select existing signals

SIGILL

SIGTERM

SIGRET

SIGEXT

SIGFPE

6.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

In which libraries NULL macro is defined?

stdlib.h

stdio.h

assert.h

stddef.h

stdbool.h

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which macro may return 31?


int x = 2, y= 3, z;

z= RAT(x++,++y);

#define RAT (A,B) ( ((A) * (A)) + ((B) * (B)) )

#define RAT (A,B) ( ((A) * (2)) + ((B) * (2)) )

#define RAT(A,B) ( ((A) * (A)) + ((B) * (B)) )

#define RAT(A,B) ( ((A) * (2)) + ((B) * (2)) )

#define RAT(A,B) ( ((A) * (B)) + ((B) * (B)) )

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?