UC_TM04_Strings_Pointers

UC_TM04_Strings_Pointers

University - Professional Development

11 Qs

quiz-placeholder

Similar activities

PSP Week 5

PSP Week 5

University

10 Qs

Entrenamiento 2: Suscripción

Entrenamiento 2: Suscripción

Professional Development

10 Qs

BSH_VGE KAYIT SÜREÇLERİ 25.12.2024

BSH_VGE KAYIT SÜREÇLERİ 25.12.2024

Professional Development

12 Qs

Bài tập lớp 4_tuần 5

Bài tập lớp 4_tuần 5

University

10 Qs

Algo Quiz

Algo Quiz

University

16 Qs

SINAU 2-2

SINAU 2-2

Professional Development

9 Qs

Animasi PAT

Animasi PAT

University

10 Qs

Round 2 for Preplacement Bootcamp

Round 2 for Preplacement Bootcamp

University

15 Qs

UC_TM04_Strings_Pointers

UC_TM04_Strings_Pointers

Assessment

Quiz

Professional Development, Computers

University - Professional Development

Practice Problem

Hard

Created by

Koushik Thutupalli

Used 33+ times

FREE Resource

AI

Enhance your content in a minute

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

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

void main()

{

char s[]="hello";

char t[]="Delhi";

strcat(t,s);

printf("\n%s",s);

printf("\n%s",t);

getch();

}

Delhihello

helloDelhi

helloDelhihello

DelhihelloDelhi

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

void main()

{

char c[2]="I";

printf("\n%c",c[0]);

printf("%s",c);

getch();

}

Ic

II

I

Infinite number of I

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

void main()

{

char c[]="AEIOU";

printf("\n%d",sizeof(c));

getch();

}

0

6

5

4

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

void main()

{

char name[]="AEIOU";

int i=0;

while(name[i]!='\0'){

printf("%c",name[i]);

i++;

}

getch();

}

AEIOU

AEIOU\0

AEIOu

AEIOU\n

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

The maximum length of a character constant can be -

infinite

1

0

4

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is a valid string constant?

'A'

A

"A"

All of these

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

void main()

{

char c[]={'A','E','I','O','U'};

printf("\n%d",sizeof(c));

getch();

}

0

4

5

6

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?