Search Header Logo

C programming

Authored by Miss u darling undefined

Professional Development

University

C programming
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is c programming???

Middle level language

Machine and high level language

Procedural oriented language

All of these

2.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Which one of the following is a loop construct that will always be executed once?

for

while

switch

do while

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

________to be included to use mathematical functions sqrt()

#include<conio.h>

#include<string.h>

#include<math.h>

#include<stdio.h>

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is the correct output for the program given below.

#include <stdio.h>

Void main()

{ int i=0;

for(;i++;printf("%d",i)) ;

printf("%d",i);

}

0

1 1 2 2 3 3 4 4 5 5 ………

1

No Output : Error

5.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

What is the result after execution of the following code if a is 10, b is 5, and c is 10?

if ((a > b) && (a <= c))

a = a + 1;

else

c = c+1;

a = 10, c = 10

a = 11, c = 10

a = 10, c = 11

a = 11, c = 11

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

which of the following statements is correct :

#include <stdio.h>

int main()

{

int i,x;

for(i=1;i<=(9%2 +i); i++)

{

x=(i*3 + i*2)/I;

printf("%d",x);

}

}

The code prints output as 5 10

The code prints output as 5 5 5 5

The code prints 5 infinite numbers of times

The code prints 20 infinite numbers of times

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?