Posted on July 17, 2021July 17, 2021 by Rabiul IslamBackend Developer Test Pre-Employment Tests Backend Developer Test Welcome to Backend Developer Test. Please attend the quiz in a quite place and with a stable internet connection. An use of unauthorized medium or any unfairness will violate the exam policy. NameEmailPhone Number 1 / 40 Category: Django 1. What is a Django App? Django app is an extended package with base package is Django Django app is a python package with its own components. Both 1 & 2 Option All of the above 2 / 40 Category: Django 2. Which architectural pattern does django follow? PHP MVT HTML None of the above 3 / 40 Category: Django 3. What does {{ name }} this mean in Django Templates? {{ name }} will be the output. It will be displayed as name in HTML. The name will be replaced with values of Python variable. None of the above 4 / 40 Category: Django 4. Which of these variables are the settings for django.contib.staticfiles app? STATIC_URL STATIC_ROOT STATICFILES_DIRS All of the above 5 / 40 Category: Django 5. Which of the following is a valid forloop attributes of Django Template System? forloop.reverse forloop.firstitem forloop.counter0 forloop.lastitem 6 / 40 Category: Django 6. Which of the following is the Django shortcut method to more easily render an HTML response? render response_render render_to_response render_to_html 7 / 40 Category: Django 7. What is the Django command to view a database schema of an existing (or legacy) database? manage.py inspect manage.py legacydb manage.py inspectdb None of the above 8 / 40 Category: Django 8. Django was designed to help developers take applications from concept to completion as quickly as possible. True False 9 / 40 Category: Django 9. What does {% include %} does? It will include another template. It will include content from another template having the same templates defined. It is the same as {% extend %}. None of the above 10 / 40 Category: Django 10. What is Post.objects.all() is used for? from post.models import Post m = Post.objects.all() for i in m: print(i) post1 post2 Django is awesome It is used to bring all the objects stored in Post table. It is used to create a new Post object m. Post object will bring objects from database with SQL Query: Select *. None of the above 11 / 40 Category: Django 11. What would variable m output from post.models import * m = Post.objects.filter(post_heading=”post1″) m It will print the first object which matched with heading “post1” in argument. It will print all objects. It will print all the objects which match the heading “post1”. None of the above 12 / 40 Category: Django 12. In Post.models.filter() you can pass multiple parameters in filter() to narrow your result/s. True False 13 / 40 Category: Django 13. What will happen on execution of this command : > python manage.py createsuperuser a. It will create an admin superuser. b. It will ask for name and password of the superuser. c. Both a and b d. None of the above 14 / 40 Category: Django 14. What are request.GET and request.POST objects? Python Dictionaries Python Lists Python Dictionary-Like objects None of the above 15 / 40 Category: Django 15. Which code will give us a text area form field? Field_name = forms.TextAreaField() Field_name = forms.CharField(widgets = forms.Textarea) Field_name = forms.TextField(widgets = forms.Textarea) None of the above 16 / 40 Category: Django 16. Suppose you want to count the number of books in Django. books = Book.objects.all() Which implementation would be fastest? Database level Implementation – books.count() Python Implementation – len(books) Template Language Implementation – {{ books | length }} None of the above 17 / 40 Category: Django 17. Which of these commands is not a management command of staticfiles? python manage.py collectstatic python manage.py findstatic python manage.py runserver –nostatic python manage.py makemigrations 18 / 40 Category: Django 18. What data types and objects are not accepted as an argument by Paginator class? Dictionary Tuple List None of the above 19 / 40 Category: Django 19. Which of these is not a valid method or approach to perform URL resolution? Using Template {{ url : }} in template Using reverse() in View Functions Using get_absolute_url() None of the above 20 / 40 Category: Django 20. Which of these is not a valid backend for caching in Django? django.core.cache.backends.db.DatabaseCache django.core.cache.backends.sys.memory django.core.cache.backends.filebased.FileBasedCache django.core.cache.backends.locmem.LocMemCache 21 / 40 Category: Python 1. What is the method inside the class in python language? Object Function Attribute Argument 22 / 40 Category: Python 2. Which character is used in Python to make a single line comment? / // # ! 23 / 40 Category: Python 3. Which of the following statements is correct regarding the object-oriented programming concept in Python? Classes are real-world entities while objects are not real Objects are real-world entities while classes are not real Both objects and classes are real-world entities All of the above 24 / 40 Category: Python 4. Which of the following declarations is incorrect in Python? _x = 2 __x = 3 __xyz__ = 5 None of these 25 / 40 Category: Python 5. Study the following program: a = 1 while True: if a % 7 = = 0: break print(a) a += 1 Which of the following is correct output of this program? 1 2 3 4 5 1 2 3 4 5 6 1 2 3 4 5 6 7 Invalid syntax 26 / 40 Category: Python 6. How is memory managed in Python? Python public heap space Python private heap space The python interpreter takes care of this instead Python garbage collector None of the mentioned All of above 27 / 40 Category: Python 7. To open a file c:scores.txt for writing, we use outfile = open(“c:scores.txt”, “r”) outfile = open(“c:scores.txt”, “w”) outfile = open(file = “c:scores.txt”, “r”) outfile = open(file = “c:scores.txt”, “o”) outfile = open(file = “c:scores.txt”, “x”) outfile = open(file = “c:scoress.txt”, “W”) 28 / 40 Category: Python 8. When will the else part of try-except-else be executed? always when no exception occurs when an exception occurs when an exception occurs into except block None of above All of above 29 / 40 Category: Python 9. What is the output of the following? f = None for i in range (5): with open("data.txt", "w") as f: if i > 2: break print f.closed True False None Error 30 / 40 Category: Python 10. Suppose list1 is [2, 33, 222, 14, 25], What is list1[-1] ? Error None 33 2 14 25 31 / 40 Category: Python 11. Which of the following is an invalid statement? abc = 1,000,000 a,b,c = 1000, 2000, 3000 a_b_c = 1,000,000 a b c = 1000 2000 3000 a-b-c = 100,300,400 None of above 32 / 40 Category: Python 12. What is the maximum possible length of an identifier? 31 characters 63 characters 79 characters All of the above None of the mentioned 33 / 40 Category: Python 13. Which of the following statements create a dictionary? (Multiple Correct Answers Possible d = (40:”john”, 45:”50”) d = {“john”:40, “peter”:45} d = {} d = {40:”john”, 45:”peter”} All of the above None of above 34 / 40 Category: Python 14. What are the built-in types of python? (Multiple Correct Answers Possible) Integers Floating-point Complex numbers Strings Boolean Built-in functions 35 / 40 Category: Python 15. What is the usage of help() and dir() function in Python? Returns true when 2 operands are true Returns the inverse of the boolean value used to display the defined symbols Checks if some element is present in some sequence Used to display the documentation string to see the modules, keywords, attributes, etc. 36 / 40 Category: SQL 1. Which Data Manipulation Command Is Used To Combines The Records From One Or More Tables? Select Project Join Product 37 / 40 Category: SQL 2. Sql Permits Attribute Names To Be Repeated In The Same Relation. True False 38 / 40 Category: SQL 3. Which Statement In Sql Allows Us To Change The Definition Of A Table Is? Alter Update Create Select 39 / 40 Category: SQL 4. Which Of The Following Is The Correct Order Of Occurrence In A Typical Sql Statement? Select, Group By, Where, Having Select, Where, Having, Group Byselect, Having, Where, Group By Select, Having, Where, Group By Select, Where, Group By, Having 40 / 40 Category: SQL 5. Which Of The Following Is True For A Primary Key? It Can Take A Value More Than Once It Can’t Take Null Values It Can Take Null Values None Of These 0%