void main()
{
char s[]="hello";
char t[]="Delhi";
strcat(t,s);
printf("\n%s",s);
printf("\n%s",t);
getch();
}
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
9 questions
c language quiz
Quiz
•
University
10 questions
Rapid Round 1
Quiz
•
University
10 questions
C Programming - Basics 001
Quiz
•
University
10 questions
C Structures
Quiz
•
Professional Development
15 questions
Coding club Summit Online Quiz
Quiz
•
University
10 questions
C Programming Quiz-1
Quiz
•
University
10 questions
C - Pointers
Quiz
•
University
15 questions
Milking Minds 2 17-01-24
Quiz
•
University
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade