Elance Exams Answers PDF file

-- PDF FILE --
Download PDF file of elance Zoho Creator Exam Answers

Given a model named 'User' that contains a CharField 'name', how do you query for users whose name starts with 'Fred' or 'Bob'?

User.objects.filter( name__iregex=r'^(fred|bob)$' )
User.objects.filter( name__iregex=r'^(fred|bob).+' )
User.objects.filter( name_iregex=r'^(fred|bob)+' )
User.objects.filter( name__like=r'^(fred|bob)*' )
User.objects.filter( name__regex=r'^(fred|bob)+' )
  • Follows us our servcies
  • Facebook icon
  • Linkedin icon
  • twitter icon
  • rss icon
  • social icon