
UC_TM04_Strings_Pointers

Quiz
•
Professional Development, Computers
•
University - Professional Development
•
Hard

Koushik Thutupalli
Used 33+ times
FREE Resource
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
Similar Resources on Wayground
10 questions
C Structures

Quiz
•
Professional Development
10 questions
Rapid Round 1

Quiz
•
University
10 questions
IT Quiz Round 3

Quiz
•
University
10 questions
CIS1101-programming practice2

Quiz
•
University
10 questions
Lenguaje de programación C 3BGU

Quiz
•
Professional Development
10 questions
C Union Enum Bitfields Macros 31May2023

Quiz
•
University
8 questions
Kuizi 4.3

Quiz
•
University
15 questions
c program

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade