C quiz

C quiz

University

10 Qs

quiz-placeholder

Similar activities

QUIZ CC 102 (FUNCTIONS)

QUIZ CC 102 (FUNCTIONS)

University

15 Qs

C Programming quiz 3

C Programming quiz 3

University

10 Qs

Topic 4 Array

Topic 4 Array

University

10 Qs

IoT Lecture 8 - Data and Analytics for IoT

IoT Lecture 8 - Data and Analytics for IoT

University

10 Qs

EDA PARTE 2

EDA PARTE 2

University

15 Qs

Tutorium 2

Tutorium 2

University

10 Qs

Pretest หน่วยที่ 4

Pretest หน่วยที่ 4

KG - University

15 Qs

Actúa - Conocimientos generales

Actúa - Conocimientos generales

2nd Grade - Professional Development

15 Qs

C quiz

C quiz

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Pranay Adak

Used 3+ 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

"system()" function is prototyped in

<stdio.h>

<stdlib.h>

<system.h>

<alloc.h>

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Upon failing the execution of "system()" function the return value is

NULL

-1

0

Exit code of the command

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

int main(void)

{

main();

return 0;

}

The code will result in

Infinite loop

Compile time error

Runtime exception

Stack overflow

4.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

The output of the following code

int main(void)

{

printf("%d",printf("%d",0x11));

return 0;

}

111

172

112

216

5.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

What will be the output of the following code

int main(void)

{

int i=-5,j=3;

for(;i<j;i++,j--){}

printf("%d%d",j,i);

return 0;

}

-1-1

-20

0-2

compiler error

6.

MULTIPLE CHOICE QUESTION

20 sec • 2 pts

What will be the output of the following code

int main(void)

{

int a[5]={2,7,9,4,-1};

printf("%d",*(a+5));

return 0;

}

-1

Garbage value

Runtime Error

Compilation error

7.

MULTIPLE CHOICE QUESTION

20 sec • 2 pts

A two dimensional array is defined as "int a[m][n]", the address of the element a[i][j] is

a+(i*(n-1)*(sizeof(int)))+(j*(m-1)*(sizeof(int)))

a+(i*n*(sizeof(int)))+(j*(sizeof(int)))

a+(i*(m-1)*(sizeof(int)))+(j*(sizeof(int)))

a+(i*n*(sizeof(int)))+(j*m*(sizeof(int)))

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?