Find Interview Questions for Top Companies
Codingmart Technologies Interview Questions and Answers
Ques:- What is use of session in django framework?
Right Answer:
In Django, sessions are used to store data on the server side for individual users, allowing you to persist user-specific information (like login status, preferences, or shopping cart contents) across multiple requests without needing to pass this data in URLs or forms.
Ques:- Write a program to check whether the object is of a class or its subclass.
Comments
Admin May 17, 2020

There is a method which is built-in to show the instances of an object that consists of many classes by providing a tuple in a table instead of individual classes. The method is given as isinstance(obj,cls) and in more details given as:
isinstance(obj, (class1, class2, ...)) that is used to check about the object’s presence in one of the classes. The built in types can also have many formats of the same function like isinstance(obj, str) or isinstance(obj, (int, long, float, complex)).
It is not preferred to use the class instead user-defined classes are made that allow easy object-oriented style to define the behavior of the object’s class. These perform different thing that is based on the class. The function differs from one class to another class. To find out the object of the particular class the following program is used:
def search(obj):
if isinstance(obj, box):
# This is the code that is given for the box and write the program in the object
elif isinstance(obj, Document):
# This is the code that searches the document and writes the values in it
elif
obj.search()
#This is the function used to search the object’s class.

Ques:- what are all reusable application u used in django prjt
Right Answer:
Some reusable applications commonly used in Django projects include:

1. **Django REST Framework** - for building APIs.
2. **Django Allauth** - for authentication and account management.
3. **Django Crispy Forms** - for better form rendering.
4. **Django Debug Toolbar** - for debugging during development.
5. **Django Celery** - for handling asynchronous tasks.
6. **Django Storages** - for integrating with cloud storage services.
7. **Django Haystack** - for search functionality.
8. **Django Filter** - for filtering querysets easily.
Ques:- What is the difference between programing language and scripting language.?
Comments
Admin May 17, 2020

The core code of any application is written in a programming
language that is create or at least modified by end
user.(eg.java)
a scripting language is a type of prog. language that allows
control of of s/w application and sometimes used to add the
features and client side checking in a web page.(eg javascript)
both are distinct.eg. suppose in html page, u create some
textboxes, then if u want to apply some validation(email
vali.) on their text at client side or want to add features
like counter, flash images etc in the web page, then
javascript canbe used. but at the server side what to do
with this text or how to handle database, all this is
programmed in core language like java,geerally called prog.
language. but java and javascript are totally different.

Admin May 17, 2020

Script Language is code fragment.it is interpreted.It is dynamically typed.
but the programming language is a compiled language and it is a stand alone application.

Ques:- How we can bind HTML classes in Vue JS?
Right Answer:
In Vue.js, you can bind HTML classes using the `v-bind:class` directive or the shorthand `:class`. You can pass an object, array, or a string to dynamically apply classes. For example:

```html
<div :class="{ active: isActive, 'text-danger': hasError }"></div>
```

or

```html
<div :class="[activeClass, errorClass]"></div>
```
Comments
Admin Feb 8, 2020

In order to bind HTML classes we can use v-bind: class

Ques:- In Vue JS what are the dynamic components?
Right Answer:
Dynamic components in Vue.js are components that can change based on the application's state or data. They are defined using the `<component>` tag, where the `is` attribute specifies which component to render dynamically. This allows for the rendering of different components based on conditions or user interactions.
Comments
Admin Feb 8, 2020

These are created using keyword component.

<component v-bind:is = "view"></component>

Ques:- What is a Vue plugin?
Right Answer:
A Vue plugin is a reusable piece of code that adds global functionality to a Vue application, allowing you to extend Vue's capabilities with features like components, directives, or methods.
Comments
Admin Feb 8, 2020

A Vue plugin helps developers in building and adding a global level functionality to Vue. This can be used to write globally accessible properties and methods, options, assets, mixins and other custom API’s to an application.

Ques:- What is Vue JS?
Right Answer:
Vue.js is a progressive JavaScript framework used for building user interfaces and single-page applications. It allows developers to create reactive components and manage state efficiently.
Comments
Admin Feb 8, 2020

● It is progressive javascript framework to develop interactive web interfaces.
● It focuses on view layer.
● It is easy to understand.
● It is scalable and simple to install.

Ques:- What is Vue.js?
Right Answer:
Vue.js is a progressive JavaScript framework used for building user interfaces and single-page applications. It allows developers to create reactive components and manage state efficiently.
Comments
Admin Feb 8, 2020

Vue JS is basically pronounced as view, it is progressive framework useful in building UI’s.

Vue.js is small, versatile and approachable framework. If you are aware of CSS, HTML and JavaScript then you are good to go with developing Vue JS apps in no time.

AmbitionBox Logo

What makes Takluu valuable for interview preparation?

1 Lakh+
Companies
6 Lakh+
Interview Questions
50K+
Job Profiles
20K+
Users