Keyword

Result: 12 questions

What MVC stands for?

Quiz

What is Model in MVC?

Quiz

How to bind more than one models to view in MVC framework?

Quiz

What is the design pattern that Java uses for all Swing components ?

Answer:

The design pattern used by Java for all Swing components is the Model View Controller (MVC) pattern.

View

What makes up Django architecture?

Answer:

Django runs on MVC architecture. Following are the components that make up django architecture:

  • Models: Models elaborate back-end stuffs like database schema.(relationships)
  • Views: Views control what is to be shown to end-user.
  • Templates: Templates deal with formatting of view.
  • Controller: Takes entire control of Models.A MVC framework can be compared to a Cable TV with remote. A Television set is View(that interacts with end user), cable provider is model(that works in back-end) and Controller is remote that controls which channel to select and display it through view.
View

What does MVC stand for and what does each component do?

Answer:

MVC stands for Model View Controller.
The controller handles data passed to it by the view and also passes data to the view. It’s responsible for interpretation of the data sent by the view and dispersing that data to the appropriate models awaiting results to pass back to the view. Very little, if any business logic should be occurring in the controller.

The model’s job is to handle specific tasks related to a specific area of the application or functionality. Models will communicate directly with your database or other storage system and will handle business logic related to the results.

The view is passed data by the controller and is displayed to the user.

Overall, this question is worth knowing as the MVC design pattern has been used a lot in the last few years and is a very good design pattern to know. Even with more advanced flows that go down to repositories and entities, they still are following the same basic idea for the Controller and View. The Model is typically just split out into multiple components to handle specific tasks related to database data, business logic etc. The MVC design pattern helps draw a better understanding of what is being used, as a whole, in the industry.

View

Mention what are the advantages of using AngularJS ?

Answer:

AngularJS has several advantages in web development.

  • AngularJS supports MVC pattern
  • Can do two ways data binding using AngularJS
  • It has per-defined form validations
  • It supports both client server communication
  • It supports animations
View

Mention what are the advantages of using Angular.js framework ?

Answer:

Advantages of using Angular.js as framework are

  • Supports two way data-binding
  • Supports MVC pattern
  • Support static template and angular template
  • Can add custom directive
  • Supports REST full services
  • Supports form validations
  • Support both client and server communication
  • Support dependency injection
  • Applying Animations
  • Event Handlers
View

Is Flask an MVC model and if yes give an example showing MVC pattern for your application?

Answer:

Basically, Flask is a minimalistic framework which behaves same as MVC framework. So MVC is a perfect fit for Flask, and the pattern for MVC we will consider for the following example

from flask import Flask

app = Flask(_name_)

@app.route(“/”)

Def hello():

return “Hello World”

app.run(debug = True)

In this code your,
  • Configuration part will be

from flask import Flask

app = Flask(_name_)

  • View part will be

@app.route(“/”)

Def hello():

return “Hello World”

  • While you model or main part will be

app.run(debug = True)

View

Which architectural pattern does Django Follow?

Answer:

Django follows Model-View Controller (MVC) architectural pattern.

View

Explain the architecture of Django?

Answer:

Django is based on MVC architecture. It contains the following layers:

Models: It describes the database schema and data structure.

Views: The view layer is a user interface. It controls what a user sees, the view retrieves data from appropriate models and execute any calculation made to the data and pass it to the template.

Templates: It determines how the user sees it. It describes how the data received from the views should be changed or formatted for display on the page.

Controller: Controller is the heart of the system. It handles requests and responses, setting up database connections and loading add-ons. It specifies the Django framework and URL parsing.

View

What is MVC?

Answer:

Most programmers know this, but interviewers will likely look for a deep understanding of MVC, and some explanation or examples on how/why/ when you used it. 

MVC - Model, View, Controller - is simply a way of organizing your code into 3 separate layers each with there own job. 

Model - Usually contains data access code and all of you business logic code. 
View - Contains markup/design code, generally html,xml, json. 
Controller - Usually contains very little code, just whatever is needed to call the Model code and render the View code.

http://www.symfony-project.org/book/1_0/02-exploring-symfony-s-code

View

© 2017 QuizBucket.org