Computer Science MCQs · Django What does the bulk_create method do in Django? A Deletes multiple objects from the database B Creates multiple objects in a single database query Correct answer C Updates multiple objects in the database D Performs a bulk insert operation using raw SQL MCQSEXAM Show answer Read explanation
Computer Science MCQs · Django Which of the following is NOT true about Django's F object? A It allows referencing model fields in queries B It is used to perform mathematical operations in queries C It can only be used with integer fields Correct answer D It helps avoid race conditions in database updates MCQSEXAM Show answer Read explanation
Computer Science MCQs · Django What is the purpose of Django's annotate method? A To perform aggregation functions on querysets Correct answer B To filter query results based on a condition C To retrieve a single object from the databas D To order query results in ascending or descending order MCQSEXAM Show answer Read explanation
Computer Science MCQs · Django Which method is used to filter query results based on certain conditions in Django? A get() B filter() Correct answer C exclude() D all() MCQSEXAM Show answer Read explanation
Computer Science MCQs · Django In Django, how can you perform raw SQL queries? A Using the django.db.connection object Correct answer B Using the django.db.models module C By subclassing the django.db.models.QuerySet class D By modifying the settings.py file MCQSEXAM Show answer Read explanation
Computer Science MCQs · Django What does the prefetch_related method do in Django? A Filters query results based on a condition B Retrieves related objects after the main query is executed Correct answer C Orders query results in ascending or descending order D Performs a raw SQL query MCQSEXAM Show answer Read explanation
Computer Science MCQs · Django Which of the following is NOT a valid option for Django's ForeignKey field? A to_field B on_delete C related_name D unique Correct answer MCQSEXAM Show answer Read explanation
Computer Science MCQs · Django What is the purpose of Django's select_related method? A To optimize database queries by reducing the number of queries Correct answer B To filter query results based on a condition C To order query results in ascending or descending order D To perform a join operation between two tables MCQSEXAM Show answer Read explanation
Computer Science MCQs · Django Which Django command is used to apply all pending migrations to the database? A python manage.py makemigrations B python manage.py migrate Correct answer C python manage.py createsuperuser D python manage.py collectstatic MCQSEXAM Show answer Read explanation
Computer Science MCQs · Django In Django models, what does the related_name attribute do? A Specifies the database column name B Defines the reverse relationship name Correct answer C Specifies the foreign key constraint D Defines the primary key of the model MCQSEXAM Show answer Read explanation
Computer Science MCQs · Django Which Django command is used to create a new database migration? A python manage.py migrate B python manage.py makemigrations Correct answer C python manage.py collectstatic D python manage.py runserver MCQSEXAM Show answer Read explanation
Computer Science MCQs · Django Which of the following is NOT a supported database backend in Django? A MySQL B SQLite C MongoDB Correct answer D PostgreSQL MCQSEXAM Show answer Read explanation
Computer Science MCQs · Django What is Django ORM used for? A Handling HTTP requests B Generating HTML templates C Communicating with the database Correct answer D Managing user authentication MCQSEXAM Show answer Read explanation
Computer Science MCQs · HTML Which HTML element is used to define a term within a definition list? A <term> B <dt> Correct answer C <def> D <dd> MCQSEXAM Show answer Read explanation
Computer Science MCQs · HTML Which HTML element is used to define a variable in a mathematical or programming context? A <var> Correct answer B <variable> C <math> D <value> MCQSEXAM Show answer Read explanation
Computer Science MCQs · HTML Which HTML element is used to define an abbreviation or acronym? A <abbr> Correct answer B <acronym> C <abbrv> D <short> MCQSEXAM Show answer Read explanation
Computer Science MCQs · HTML Which HTML element is used to define a citation or reference to another source? A <cite> Correct answer B <ref> C <source> D <reference> MCQSEXAM Show answer Read explanation
Computer Science MCQs · HTML Which HTML tag is used to define a definition term in a description list? A <dt> Correct answer B <dfn> C <def> D <term> MCQSEXAM Show answer Read explanation
Computer Science MCQs · HTML Which HTML element is used to define computer code text? A <code> Correct answer B <pre> C <var> D <kbd> MCQSEXAM Show answer Read explanation
Computer Science MCQs · HTML Which HTML element is used to define emphasized text? A <italic> B <em> Correct answer C <strong> D <emphasis> MCQSEXAM Show answer Read explanation
Computer Science MCQs · HTML Which HTML tag is used to define an abbreviation or acronym? A <abbr> Correct answer B <acronym> C <abbrv> D <short> MCQSEXAM Show answer Read explanation
Computer Science MCQs · HTML Which HTML element is used to create a line break? A <break> B <br> Correct answer C <lb> D <linebreak> MCQSEXAM Show answer Read explanation
Computer Science MCQs · HTML What is the purpose of the <sup> tag in HTML? A To define superscript text Correct answer B To define subscript text C To create a hyperlink D To format text as bold MCQSEXAM Show answer Read explanation
Computer Science MCQs · HTML Which tag is used to define a subscript text in HTML? A <sub> Correct answer B <sup> C <subscript> D <superscript> MCQSEXAM Show answer Read explanation
Computer Science MCQs · HTML Which tag is used to italicize text in HTML? A <i> B <italic> C <em> Correct answer D <italics> MCQSEXAM Show answer Read explanation