Django 86-113

Django 86-113

1st Grade

29 Qs

quiz-placeholder

Similar activities

Monthly Assessment 1: Term III: Mathematics

Monthly Assessment 1: Term III: Mathematics

1st - 2nd Grade

30 Qs

History

History

KG - Professional Development

24 Qs

Math Test (Chapter 11-15)

Math Test (Chapter 11-15)

1st Grade

25 Qs

Nuzair Zuhair Tuba's quiz

Nuzair Zuhair Tuba's quiz

KG - Professional Development

27 Qs

CIC1_18/04-22/04

CIC1_18/04-22/04

1st Grade

25 Qs

Ratios

Ratios

KG - 7th Grade

25 Qs

Math Review

Math Review

1st Grade

32 Qs

Division by Grouping and Sharing

Division by Grouping and Sharing

1st Grade

33 Qs

Django 86-113

Django 86-113

Assessment

Quiz

Mathematics

1st Grade

Easy

Created by

Данияр Джамба

Used 4+ times

FREE Resource

29 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What Django class does a class-based view need to extend to indicate that the view can only be accessed by logged-in users?

MustLoginView

 Login Required Mixin

AutoRedirectView

AutoLoginView

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a benefit of using the Django forms capability?

Database portability

You reduce the amount of HTML you need to generate

You can add complex form validation rules to your application

You can easily create attractively styled forms

You can have a mapping layer between your models and templates

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens when a Create form is submitted and Django forms detects a validation error?

The form is re-displayed with the incorrect data

The form is re-displayed with the error messages

The record is deleted form the database

The form is re-displayed with the incorrect data and error messages

A 403 (Not authorized) is sent back to the browser

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You cannot use a Django form unless it is connected to a Django Model

True

False

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you indicate that you want to display a form using the Crispy library in a template?

form.as_crispy

 csrf_token

 form.as_table

 form | crispy

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the fields="all" statement do in the Meta section of a Django form class?

Indicates that none of the model fields are to be saved

Indicates that all of the underlying model fields should be in the form

 Indicates that the owner field is not supposed to be shown to the user when the form is displayed

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

 Indicates that the owner field is not supposed to be shown to the user when the form is displayed

dispatch()

post()

get()

get_queryset()

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?