
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 Viva

Quiz
•
University
14 questions
Technical Quiz Final Round

Quiz
•
Professional Development
6 questions
Unit 12 : error no

Quiz
•
University
10 questions
Day 2 C Programming quiz

Quiz
•
Professional Development
13 questions
Lab Review Quiz (2/12/2024-2/16/2024)

Quiz
•
University
10 questions
C Program Array and strings

Quiz
•
University
15 questions
CIS1101-programming practice

Quiz
•
University
10 questions
Arrays in C (II yr 02.07.2020)

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade