View Count: 0
Duration: 13 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 31 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 9 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 11 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 12 mins
Accessed date:
Not Yet Viewed
Post your comment / feedback here
 
 

Be the first one to comment about this video

Question No: 1 of 25
Which is the data type used to declare the strings? 
Options:
  1. strings
  2. character
  3. integer
  4. none of above
View Answer/Explanation:
b
Explanation:
There is no special data type for strings, C handles this type of information with arrays of characters terminated by '\0' character

Question No: 2 of 25
Which of the following declaration is correct to declare the strings? 
Options:
  1. char city[10];
  2. char city;
  3. Char []city;
  4. None of above
View Answer/Explanation:
a
Explanation:

Question No: 3 of 25
In C every string ends with ------------ character 
Options:
  1. \0 (Null)
  2. \t tab space
  3. \n newline
  4. 0
View Answer/Explanation:
a
Explanation:

Question No: 4 of 25
Which one of the following string Initialization are correct? 
Options:
  1. char name[10] = { 'A', 'l', 'a', 'b', 'a', 'm', 'a', '\0' };
  2. char *name = { 'A', 'l', 'a', 'b', 'a', 'm', 'a' };
  3. char name={“Alabama”};
  4. char *name={“A”,”l”,”b”,”a”,”m”};
View Answer/Explanation:
a
Explanation:

Question No: 5 of 25
What will be the output of the above program?
#include
void main()
{
  char str1[]="Hello";
  char str2[10]="hai";
  str2=str1;
  printf(“%c”,str2);
} 
Options:
  1. Hello
  2. Hai
  3. Compilation Error
  4. Runtime Error
View Answer/Explanation:
c
Explanation:
This statement will give error incompatible types in assignment

Question No: 6 of 25
What will be the output of the above program?
#include
void main()
{
	char *s = "Good morning";
	char *p;
	p = s;
	puts(p);
	return 0;
} 
Options:
  1. Good
  2. Good Morning
  3. Compilation Error
  4. Runtime Error
View Answer/Explanation:
b
Explanation:
We can assign a character pointer to another character pointer.

Question No: 7 of 25
What will be the output of the below program?
#include
int main()
{
        char *str1="Hello";
	str1="bye";
	printf(str1);
	return 0;
} 
Options:
  1. bye
  2. No output
  3. Error
  4. None of above
View Answer/Explanation:
a
Explanation:

Question No: 8 of 25
Which format specifiers are used to read the strings 
Options:
  1. %s
  2. %c
  3. %g
  4. %l
View Answer/Explanation:
a
Explanation:

Question No: 9 of 25
How many types of string handling mechanism are available? 
Options:
  1. 6
  2. 5
  3. 4
  4. 7
View Answer/Explanation:
a
Explanation:

Question No: 10 of 25
In which one of the following function will copy the one string to another string.
Strcpy()
Strcmp()
Strchr()
Strstr() 
Options:
  1. Strcpy()
  2. Strcmp()
  3. Strchr()
  4. Strstr()
View Answer/Explanation:
a
Explanation:

  1