C Programming - Medium

C Programming - Medium

10th Grade - University

10 Qs

quiz-placeholder

Similar activities

C-Lab10

C-Lab10

University

10 Qs

C-technical Quiz 1

C-technical Quiz 1

University

15 Qs

C Operators

C Operators

University - Professional Development

15 Qs

JavaLab-534

JavaLab-534

University

10 Qs

Tipe Data

Tipe Data

10th Grade

10 Qs

Массивы

Массивы

University

13 Qs

CLab 12

CLab 12

University

10 Qs

Arreglos (Arrays) en Programación I

Arreglos (Arrays) en Programación I

University

10 Qs

C Programming - Medium

C Programming - Medium

Assessment

Quiz

Professional Development

10th Grade - University

Easy

Created by

Szymon Tokarski

Used 5+ times

FREE Resource

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)) )

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?