C CODE MASTER

C CODE MASTER

Professional Development

15 Qs

quiz-placeholder

Similar activities

Pascal (Тест 3)

Pascal (Тест 3)

Professional Development

20 Qs

วิชาการเขียนโปรแกรมภาษา Pyhton รหัส 32201

วิชาการเขียนโปรแกรมภาษา Pyhton รหัส 32201

Professional Development

20 Qs

DECI - Week 5 - Time Machine

DECI - Week 5 - Time Machine

Professional Development

12 Qs

Python8

Python8

Professional Development

12 Qs

Segundo Prework marzo

Segundo Prework marzo

12th Grade - Professional Development

10 Qs

Introduction to Machine Learning

Introduction to Machine Learning

University - Professional Development

20 Qs

Tuan 3 - Python

Tuan 3 - Python

KG - Professional Development

10 Qs

Datatypes and Flowcontrol

Datatypes and Flowcontrol

Professional Development

15 Qs

C CODE MASTER

C CODE MASTER

Assessment

Quiz

Computers

Professional Development

Practice Problem

Hard

Created by

Amartya Vishwakarma

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

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

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is output of below program?

int main()

{

const int a = 10;

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

return 0;

}

Runtime error

10

11

Compilation error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the following program where is the variable a getting defined and where it is getting declared?

#include<stdio.h>

int main()

{

extern int a;

printf("%d\n", a);

return 0;

}

int a=20;

int a = 20 is declaration, extern int a is the definition

extern int a is declaration, int a = 20 is the definition

int a = 20 is definition, a is not defined

a is declared, a is not defined

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

0 , 0.000

1 , 1.000

Compile time error

Garbage value

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is output of the below program?

int main()

{

int i,j;

for(i = 0,j=5;i<5;i++,--j)

{

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

}

return 0;

}

55--64--73--82--91--

50--61--72--83--94--

Compilation Error

50--41--32--23--14--

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output

int main()

{

int a = 320;

char *ptr;

ptr =( char *)&a;

printf("%d",*ptr);

return 0;

}

32

64

128

320

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

what will be the output of the code.

#include<stdio.h>

#include<string.h>

int main()

{

char arr[] = "Breakpoints";

printf("%d-%d",sizeof(arr), strlen(arr));

return 0;

}

12-11

11-11

11-12

12-12

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If the size of the array is less than the number of initializers

then :-

Generates an error message

Extra values are being ignored

Size is neglected when values are given

Size of Array is increased

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?