C Programming - Medium

C Programming - Medium

10th Grade - University

10 Qs

quiz-placeholder

Similar activities

TKP 1

TKP 1

University

13 Qs

Liner shipping management homework #1

Liner shipping management homework #1

University

12 Qs

PHONG CẢNH ĐỀN HÙNG

PHONG CẢNH ĐỀN HÙNG

KG - 12th Grade

10 Qs

CISG- Công ước viên 1980

CISG- Công ước viên 1980

University

15 Qs

Modul 5 Tipe B

Modul 5 Tipe B

University

10 Qs

¿Cuánto sabés de la FIUBA?

¿Cuánto sabés de la FIUBA?

University

11 Qs

PRE POST PPI 2022

PRE POST PPI 2022

University

10 Qs

bhp

bhp

1st Grade - Professional Development

15 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?