Live Help (Start Chat)
View Count: 0
Duration: 38 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 9 mins
Accessed date:
Not Yet Viewed
Post your comment / feedback here
 
 

Be the first one to comment about this video

Question No: 1 of 16
________ Header file is included in the program to perform console I/O operation? 
Options:
  1. stdio.h
  2. std.h
View Answer/Explanation:
a
Explanation:

Question No: 2 of 16
Variable number of arguments can be passed to toprintf() library function? 
Options:
  1. True
  2. False
View Answer/Explanation:
a
Explanation:

Question No: 3 of 16
Which data type defines ‘%s’ specifier? 
Options:
  1. unsigned long
  2. long
  3. char array
  4. string
View Answer/Explanation:
c
Explanation:

Question No: 4 of 16
Which of the following is the invalid library function? 
Options:
  1. printf("10%d", 456);
  2. printf("%10d", 456);
  3. printf("%10.2d", 456.4);
  4. printf("%d %d", 456, 454.4);
View Answer/Explanation:
a
Explanation:

Question No: 5 of 16
What will be the output of the following program
#include
int main()
{
	int n=123;
	printf("%d", -n);
} 
Options:
  1. -123
  2. 123
  3. 0
  4. none of above
View Answer/Explanation:
a
Explanation:
Value of n is initialized as an integer i. e. n = 123. Next, format specifies ‘%d’ is assigned the value of signed Integer. Hence, we get the output ‘-123’.

Question No: 6 of 16
What will be the output of printf("%06d", 9876); 
Options:
  1. 9876
  2. 987600
  3. 009876
  4. 980076
View Answer/Explanation:
c
Explanation:
‘%0w.d’ Here, w is an integer that specifies Field width. If w is greater than the specified number, then the Number is written right-justified in the given field and living spaces are replaced with zeros. If w is less than Specified number, then number is printed overriding the minimum specification.

Question No: 7 of 16
What will be the output of the program 
Options:
  1. 98.78
  2. 0098.77
  3. 98.7754
  4. 98.0077
View Answer/Explanation:
a
Explanation:
‘%w.p f’ Here, W specifies the total number of columns for the output value. P is integer number that specifies number of digits to right of decimal point. And f defines floating point number. If w is greater than the specified number, then the number is written right-justified in the given field by living spaces If w is less than specified number, then number is printed overriding the minimum specification.

Question No: 8 of 16
What does ‘&’ symbol define in console I/O Function? 
Options:
  1. assign value to variable
  2. logical operator
  3. address of operator
  4. none of above
View Answer/Explanation:
c
Explanation:
The address-of operator (&) gives the address of its operand. The address-of operator can only be applied to variables with fundamental, structure, or union types that are declared at the file-scope level, or to sub-scripted array references.

Question No: 9 of 16
Which of following is a valid statement? 
Options:
  1. scanf("%d, %f, %d" &a, &b, &c);
  2. scanf("%d", "%d", "%d", &a, &b, &c);
  3. scanf("%d %f %d", &a, &b, &c);
  4. All of above
View Answer/Explanation:
c
Explanation:
When multiple elements/variables are entered in a single scanf(), it uses white space to separate input

Question No: 10 of 16
Which of following is a valid statement? 
Options:
  1. scanf("%d, %f, %d" &a, &b, &c);
  2. scanf("%d", "%d", "%d", &a, &b, &c);
  3. scanf("%d %f %d", &a, &b, &c);
  4. All of above
View Answer/Explanation:
c
Explanation:
When multiple elements/variables are entered in a single scanf(), it uses white space to separate input into field. White spaces can be new line/tabs. Also punctuation marks are not count as separator.

  1