Computer Programmer

Computer Programmer Interview Questions and Answers

Updated 31 Jul 2017

Q1. what is Sub-typing and order of solving multiple inheritance

Ans.

Sub-typing is a concept in programming where a derived class inherits properties and behaviors from a base class.

  • Sub-typing allows for code reuse and promotes modularity.

  • In multiple inheritance, the order of solving is determined by the order of inheritance in the class definition.

  • For example, if a class inherits from two base classes A and B, and both have a method with the same name, the method from class A will be called first if it appears before class B in the inheritanc...read more

Q2. how Django memory is managed and many more

Ans.

Django memory is managed through garbage collection and reference counting.

  • Django uses a combination of garbage collection and reference counting to manage memory.

  • Garbage collection automatically frees up memory by identifying and removing objects that are no longer in use.

  • Reference counting keeps track of the number of references to an object and deallocates it when the count reaches zero.

  • Django's memory management helps optimize performance and prevent memory leaks.

  • Example:...read more

Q3. how memory is managed in python

Ans.

Python uses automatic memory management through a process called garbage collection.

  • Python uses reference counting to keep track of objects in memory.

  • When an object's reference count reaches zero, it is automatically deallocated.

  • Python also employs a garbage collector to handle cyclic references.

  • Memory management in Python is transparent to the programmer.

Q4. concept of virtual box in python

Ans.

VirtualBox is a virtualization software that allows running multiple operating systems on a single physical machine.

  • VirtualBox is an open-source virtualization software developed by Oracle.

  • It allows users to create and run virtual machines on their computer.

  • VirtualBox supports various operating systems including Windows, Linux, and macOS.

  • It provides features like snapshotting, which allows saving the state of a virtual machine and reverting back to it later.

  • VirtualBox also su...read more

Are these interview questions helpful?

Q5. how Django framework works

Ans.

Django is a high-level Python web framework that follows the model-view-controller architectural pattern.

  • Django uses the MTV (Model-Template-View) architectural pattern.

  • It provides a robust set of tools and libraries for building web applications.

  • Django follows the DRY (Don't Repeat Yourself) principle, promoting code reusability.

  • It includes an ORM (Object-Relational Mapping) layer for database operations.

  • Django supports URL routing, form handling, authentication, and session...read more

Q6. dictionary program

Ans.

A dictionary program that stores and retrieves words and their definitions.

  • Use an array of strings to store the words and their definitions.

  • Implement functions to add new words, retrieve definitions, and update existing definitions.

  • Consider using a hash table or a trie data structure for efficient word lookup.

  • Handle cases where multiple definitions or synonyms exist for a word.

Share interview questions and help millions of jobseekers 🌟

man-with-laptop

Computer Programmer Jobs

Computer Programmer 1-5 years
K J Somaiya Institute of Management Studies and Re...
4.9
Mumbai
Computer Programmer 1-6 years
Infomerica Inc
3.1
Hyderabad / Secunderabad
Computer Programmer 6-11 years
Aarons Visions
0.0
₹ 12 L/yr - ₹ 18 L/yr
Hyderabad / Secunderabad
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Interview experiences of popular companies

3.1
 • 44 Interviews
View all

Calculate your in-hand salary

Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary

Computer Programmer Interview Questions
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter