Search Header Logo

PPS-ASSIGNMENT-1

Authored by SHAIK RIYAZ

Other

University

22 Questions

Used 2+ times

PPS-ASSIGNMENT-1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following cannot be a structure member?

Another structure

Function

Array

None

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

void main()

{

​​​int color=2;

​​​switch(color)

​​​{

​​​​case 0: printf("black");

​​​​case 1: printf("blue");

​​​​case 2: printf("Green");

​​​​case 3: printf("aqua");

​​​​default:printf("other");

​​​}

}

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How many times "CLanguage" is printed?

#include<stdio.h>

int main()

{

int x;

for(x=-1; x<=10; x++)

{

if(x < 5)

{

continue;

}

else

{

break;

}

printf("C Language");

}

}

10 times

11 times

0 times

Infinite times

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the function is more appropriate for reading a multi-word string?

puts()

gets()

printf()

scanf()

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of the below program?#include<stdio.h>

int main()

{

char a[] = "%d\n";

a[1] = 'b';

printf(a, 65);

return 0;

}

b

a

A

65

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

what will be output of ....


printf("%d",10+5/2);

7.5

7

12

12.5

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

logical operators are used for......

developing conditions

combining conditions

using conditions

none of the above

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?