C Programming Quiz

C Programming Quiz

Professional Development

10 Qs

quiz-placeholder

Similar activities

C CODE MASTER B

C CODE MASTER B

Professional Development

15 Qs

C Looping/Conditional MCQs

C Looping/Conditional MCQs

Professional Development

10 Qs

Mech 3

Mech 3

Professional Development

10 Qs

Day 2 C Programming quiz

Day 2 C Programming quiz

Professional Development

10 Qs

MindSpace Computers C Test-3 2023

MindSpace Computers C Test-3 2023

Professional Development

15 Qs

C Programming

C Programming

Professional Development

10 Qs

Quiz - Pointers and Callby value & Reference

Quiz - Pointers and Callby value & Reference

Professional Development

15 Qs

Revisão P1 - Estrutura de Dados

Revisão P1 - Estrutura de Dados

Professional Development

10 Qs

C Programming Quiz

C Programming Quiz

Assessment

Quiz

Computers

Professional Development

Hard

Created by

HASAN YIGIT

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used to reach structure members if the variable is not a pointer?

.

:

::

/

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following cannot be a structure member?

Another structure

Array

Function

None of the mentioned

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the size (in bytes) of the structure given below (assume 32-bit processor)?

struct test

{

int k;

char c;

};

3

4

5

6

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The expression aptr->suit is equivalent to __________.

a. aptr.suit

b. *aptr.suit

c. (*aptr).suit

d. *aptr.(suit)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

After running the following code script below, what will the last value of a and b be? int a = 7; int b = 17; int *c = &b; *c = 7;

a. 7 7

b. 7 17

c. 17 7

d. 17 17

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of C program with Structure pointer in C?

#include <stdio.h>

int main()

{

struct books{

int pages;

char str[4];

}*ptr;

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

return 0;

}

4

6

8

10

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the output of C program?

#include <stdio.h>

int main(){

struct book{

int pages;

char name[10];

}a;

a.pages=10;

strcpy(a.name,"Cbasics");

printf("%s=%d", a.name,a.pages);

return 0;

}

empty string=10

Cbasics=10

C=basics

C=basics

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?