Search This Blog

Django - Templates Quiz -1 HackerRank Questions and Answers- Fresco Play TCS

Q.1 You cannot have spaces or punctuation characters in variable names.

1) True

2) False

Ans: 1) True




Q.2 Which option does Django templates accept?

1) All the options

2) libraries

3) context_processors

4) loaders

5) autoescape

Ans: 1) All the options




Q.3 When a template system encounters a dot, it tries _______.

1) All the options

2) Attribute or method lookup

3) Dictionary lookup

4) Numeric index lookup

Ans: 1) All the options




Q.4 Since the template language doesn’t provide exception handling, any exception raised from a template filter will be exposed as a server error.

1) True

2) False

Ans: 1) True




Q.5 Which filter is available if {% load humanize %} is used in template?

1) naturaltime

2) apnumber

3) intword

4) intcomma

5) naturalday

6) All the options

Ans: 1) All the options

No comments:

Post a Comment

If you have any doubts, Please let us know.