Php Objective Questions with Answers for written test exams 69

Question 69
Which of the following statements are correct? (Choose 3)

A. sprintf() does not output the generated string.

B. printf(“%2s%1s“, “ab“, “c“) outputs the string abc.

C. vprintf() takes at least one parameter; the first parameter is the formatting

string and the following parameters are the arguments for the ‘%’

placeholders.

D. printf(“%c“, “64“) will output @ and not 6.

E. sprintf(“%3.4f“, $x) outputs more than 7 characters.

F. number_format() inserts thousands of separators and decimal points different

from (,) and (.) respectively, while printf() like functions always use

(.) as decimal point.
Answers 69


A, D, and F

  







Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---