Showing posts with label freshers. Show all posts
Showing posts with label freshers. Show all posts

December 26, 2019

Top 20 Oracle SCM Interview Questions and Answers

 

Ques: 1. What is the difference between ‘Accrue On Receipt’ and ‘Accrue at Period End’?

Answer:

Accrue On Receipt means that when a receipt is saved, accrual transactions are immediately recorded and sent to the general ledger interface. This is also known as “online” accruals.

Accrue at Period End means that when a receipt is saved, the accrual transactions are not immediately recorded and sent to the general ledger; instead, the accounting entries are generated and sent at the end of the month by running the Receipt Accruals – Period-End Process.

All items with a destination type of either Inventory and Outside Processing are accrued on receipt. For items with a destination type of Expense, you have the option of accruing on receipt or at period end.

 

Oracle Fusion Applications interview Questions and Answers


Ques: 2. How many Key Flex Fields are there in inventory?

Answer:

Seven KFF are there in Inventory:

  1. Account Alias 
  2. Item 
  3. Item Category 
  4. Item Catalogues 
  5. Stock Locators 
  6. Sales Order 
  7. Service Items

 

Oracle Accounts Payables Interview Questions and Answers

 

Ques: 3. What is the significance of the Document Total and Account Range types on the Approval Groups form?

Answer:

The Document Total type sets the maximum limit for any approval actions taken by the user whom the approval group applies to. If multiple Document Totals are specified, the restriction will be to the Document Total, which is the lowest. 

The Account Range also allows for a document total which is then tied to a specific range of accounts listed on the same line. It is possible to have different account ranges with different amount Limits. This allows the same user to have a different dollar/account limit. 

It is mandatory to have an account range specified in each approval group defined. By default, if there is not an account range defined, all accounts will then be excluded from the document approval process, which means that the documents will not have an ability to become approved.

 

Oracle ADF Interview Questions and Answers                                 

 

Ques: 4. How an requisition line with item number and without item number [one time item] be combined to single document line in autocreate?

Answer:

If you want to combine two requisition lines for the same item, one with an item number and one without, you have to manually autocreate the document and use Modify on the Tools menu to add the predefined item to the requisition line for the one time item.

 

Oracle Access Manager Interview Questions and Answers

 

Ques: 5. What is the difference between Purchased and Purchasable Flag for an item?

Answer: 

  • Purchasable is a status attribute flag, so based on this flag, certain transactions can be controlled for an item. 
  • Purchased flag decides whether to purchase and receive this item. 
  • Purchasable flag decides whether to order this item in a purchase order. 
  • If purchasable is enabled, item can be ordered in a purchase order, if not, new purchase orders can’t be created and approved for the items. 
  • If purchased is enabled, item can be received if already present in an approved purchase order.


Oracle Fusion HCM Interview Questions and Answers


Ques: 6. I am using encumbrance accounting and when I forward a Purchase Order for approval, I am encountering the following error: APP-14166: Please enter a forward to employee or funds are not reserved. How would you resolve it?

Answer:

You must check the Reserve Funds check box when forwarding and/or approving a Purchase Order if you are using encumbrance. You can check to see if you are using encumbrance in Purchasing by doing the following:

1. Setup/Organizations/Financial Options
2. Change the Alternate Region to Encumbrance and see if the Use PO Encumbrance check box is checked.
3. Refer Note 1064155.6 for more details.

 

Oracle Financials Interview questions and Answers

 

Ques: 7. What are Reminder notifications?

Answer:

Once an approver doesn’t respond to approval notification for quite sometime, then a reminder notification can be sent out to the approver. You can send up to two reminders to an approver using the Timeout feature. You can also specify that after a certain period of time, the document be forwarded automatically to the next approver in the hierarchy. This feature has to be setup by you by changing the PO and/or Requisition approval workflow in Oracle Workflow Builder.

 

Oracle Cloud Interview Questions and Answers


Ques: 8. What is the significance of “PO: Convert Requisition UOM to Source Document UOM” profile option?

Answer:

Earlier in Autocreate if the requisition UOM is different from the BPA UOM the user would not be allowed to create a release. But in Create releases program this was possible. To make the behavior consistent we have introduced this profile option. If this profile is set to yes we allow the autocreation of the release with the quantity and UOM converted to that of the BPA. If the profile is set to yes we do not allow the creation of the req both in autocreate as well as the create releases program.


Oracle PL/SQL Interview Questions and Answers

 

Ques: 9. What are the difference in Lot and Serial?

Answer: 

Lot control is to control a whole batch of items. for example, in drug industry we have batch number which can be controlled using lot where we can track the complete batch using specific data.

Serial control is to monitor and track every single qty of an item like electronic devices where we track by serial number.


Oracle SQL Interview Questions and Answers

 

Ques: 10. What is the difference between the agreed amount and the amount limit fields while entering a contract purchase agreement and issues related to these fields?

Answer: 

i) The agreed amount field at the header level is copied to the amount limit in the terms and conditions block. This is also the amount that is printed on the blanket agreement and represents the contract amount between you and the vendor.

ii)The amount limit field will restrict the cumulative releases applied to this purchase agreement from exceeding the specified dollar amount entered here. The value of this field must be equal to or greater than the agreed amount field. This column is used for release approval amount validation. If the total cumulative releases exceed this amount approval will fail. The purpose of this field is to allow user to set a higher approval amount limit than the amount agreed.


Oracle RDMS Interview Questions and Answers

 

Ques: 11. How Warehouse Management System (WMS) is helpful compared to Inventory?

Answer:

Warehouse Management (WMS) enables companies to maximize their utilization of labor, space and equipment investments by coordinating and optimizing resource usage and material flows. Specifically designed to support the needs of distribution, manufacturing, asset-intensive, and service businesses, Oracle WMS provides a single-platform across your entire global supply chain.


BI Publisher Interview Questions and Answers

 

Ques: 12. Why is there no category displayed or list of values for the category field in the purchase order you are creating?

Answer:

You must also create category codes for your items. Then create a Category set for Purchasing controlled at the master level. Assign your items to a category code and the Purchasing category set you have created. Confirm that in Default Category Sets the Purchasing application points to the Purchasing Category set. This will populate the category and description when the item number is selected at the PO line level.


Oracle 10g Interview Questions and Answers 

 

Ques: 13. When the charge account field is non updateable?

Answer:

In the following cases the charge account field is not updateable:

1. If the destination type code is INVENTORY or SHOP FLOOR.
2. If the distribution is already encumbered.
3. If the PO is created from a encumbered Requisition
4. If the destination type code is Expense and
 

If the project is entered and the profile option PA_ALLOW_FLEXBUILDER_OVERRIDES is set to NO. If the expense accrual code= RECEIPT

 

Ques: 14. How many Transaction Types exist?

Answer:

Receive – Receive the items into Receiving Dock.
Deliver – Deliver the items into expense or inventory destination.
Return to Vendor – Return the received items directly to vendors.
Return to Receiving – Return the delivered items to Receiving Dock or inspection.
Accept – Accept items following an inspection.
Reject – Reject items following an inspection.
Transfer – Transfer items between locations.
Correct – Enter a positive or negative adjustment to a receiving or delivery transaction.
Match – Match unordered receipts to purchase orders.
Unordered – Receive items without purchase orders

 

Ques: 15. What is a Sub Inventory?

Answer:

Sub inventories can be defined as:

Subinventiries are unique physical or logical separations of material inventory. These can be raw material, finished goods or defective material sub inventory. You must define at least one sub inventory. 

Sub inventories are of two types: storage and receiving.

  • Storage sub inventories are intermediate, or final put away locations for material. Material that resides in a storage sub inventory appears in on hand quantity and is tracked by the system. The system can book orders against and use manufacturing processes on material that resides in a storage sub inventory. You must define at least one storage sub inventory for your implementation. 
  • Receiving type sub inventory is only used for receiving items. Items in this sub inventories cannot be on-hand or reserved.

 

Ques: 16. How are Lot and Serial Numbers handled in Inter-Organization Transfers?

Answer:

When you perform an inter organization transfer, the source and destination organization may have different lot/serial controls. Purchasing handles this situation as follows:


1. When the source organization uses controls and the destination organization does not, the control numbers are recorded as being issued from the source organization. Lot/serial transactions are recorded for the destination organization.
 

2. When the source organization does not use controls and the destination organization does, the transaction is processed normally.
 

3. When both source and destination organizations use controls, the control numbers are recorded as being issued from the source organization. These control numbers are tracked to insure that the same control numbers that were shipped are the ones
that are received. When items are returned from inventory to receiving or to the supplier, only the control numbers originally recorded for the delivery transaction can be used.

 

Ques:17. What is Pay On Receipt?

Answer:

Pay on Receipt (also known as ERS (Evaluated Receipt Settlement) or Self-Billing) is an Oracle Purchasing’s concurrent program, which automatically creates invoices in Oracle Payables and matches them with PO’s automatically for the received amount. The short name for the program is POXPOIV.

 

Ques: 18. How can you have specific Requestor defaulted on Requisition form?

Answer:

In order to have a specific requestor default onto the requisitions form, the user will have to set the following in the user’s requisition preferences. 

Navigation: /Purchasing -> Requisitions -> Requisitions Go to special ->preferences 

  • Click in the requestor field Choose a requestor from the list of values Click the ‘apply’ button, a message ‘ new preferences now in effect.’ 
  • Close the requisitions form Re-open the requisitions form Click in the lines region, the requestor from requisition preferences should appear in the requestor field. 
  • The requisition preferences are only valid while working on it , user needs to re enter requisition preferences each time he starts the applications.

 

Ques: 19. How does the Payment due days calculated if 30 days means will it be from invoice date or material receiving date?

Answer: Due days calculation is based on what you set up in the PAYMENT tab window of Supplier Master form.

It has Four options:

1. Goods Received
2. Invoice
3. Invoice received
4. System

 

Ques: 20.. Is it possible to have all requisitions created from Inventory – Min-Max Planning to be imported with a status of INCOMPLETE?

Answer:

Yes, it is possible to have all requisitions created from Min-Max Planning with a status of INCOMPLETE. If the desired outcome is Min-Max requisitions showing a status of INCOMPLETE, it is necessary to set the profile option: INV: MinMax Reorder Approval to Incomplete. Conversely, if this profile option is set to Approved, all requisitions imported from Min-Max Planning will be imported with an approval status based on the approval authority of the user initiating the Requisition Import process.

 


December 23, 2019

Top 20 AWS (Amazon Web Services ) Interview Questions and Answers



Ques: 1. What is Data warehouse in AWS?

Answer: 

Data ware house is a central repository for data that can come from one or more sources. Organization typically use data warehouse to compile reports and search the database using highly complex queries. Data warehouse also typically updated on a batch schedule multiple times per day or per hour compared to an OLTP (Online Transaction Processing) relational database that can be updated thousands of times per second.

 

AWS Outposts Interview Questions and Answers

AWS Cloud Interview Questions and Answers

 

Ques: 2. What is NAT Instance and NAT Gateway?

Answer:

NAT instance: A network address translation (NAT) instance is an Amazon Linux machine Image (AMI) that is designed to accept traffic from instances within a private subnet, translate the source IP address to the Public IP address of the NAT instance and forward the traffic to IWG.

NAT Gateway: A NAT gateway is an Amazon managed resources that is designed to operate just like a NAT instance, but it is simpler to manage and highly available within an availability Zone. To allow instance within a private subnet to access internet resources through the IGW via a NAT gateway.

  

AWS AppSync Interview Questions and Answers

AWS Cloud9 Interview Questions and Answers

  

Ques: 3. What type of performance can you expect from Elastic Block Storage? How do you back it up and enhance the performance?

Answer: 

Performance of an elastic block storage varies i.e. it can go above the SLA performance level and after that drop below it. SLA provides an average disk I/O rate which can at times frustrate performance experts who yearn for reliable and consistent disk throughput on a server. Virtual AWS instances do not behave this way. One can backup EBS volumes through a graphical user interface like elasticfox or use the snapshot facility through an API call. Also, the performance can be improved by using Linux software raid and striping across four volumes.

 

Amazon Athena Interview Questions and Answers

AWS RedShift Interview Questions and Answers

 

Ques: 4. How will you access the data on EBS in AWS?

Answer: 

Elastic block storage as the name indicates provides persistent, highly available and high-performance block level storage that can be attached to a running EC2 instance. The storage can formatted and mounted as a file system or the raw storage can be accessed directly.

  

AWS Cloud Practitioner Essentials Questions and Answers

AWS EC2 Interview Questions and Answers

  

Ques: 5. Is it possible to vertically scale on an Amazon Instance?  If yes, how?

Answer: 

Following are the steps to scale an Amazon Instance vertically –

  1. Spin up a larger Amazon instance than the existing one. 
  2. Pause the existing instance to remove the root ebs volume from the server  and discard. 
  3. Stop the live running instance and detach its root volume. 
  4. Make a note of the unique device ID and attach that root volume to the new server. 
  5. Start the instance again.

 

AWS Lambda Interview Questions and Answers

AWS Cloud Security Interview Questions and Answers

  

Ques: 6. What is the total number of buckets that can be created in AWS by default?

Answer: 

100 buckets can be created in each of the AWS accounts. If additional buckets are required, increase the bucket limit by submitting a service limit increase.

 

AWS Simple Storage Service (S3) Interview Questions and Answers

AWS Fargate Interview Questions and Answers

 

Ques: 7. How will you configure an instance with the application and its dependencies, and make it ready to serve traffic?

Answer: 

You can achieve this with the use of life cycle hooks. They are powerful as they let you pause the creation or termination of an instance so that you can sneak peak in and perform custom actions like configuring the instance, downloading the required files, and any other steps that are required to make the instance ready. Every auto scaling group can have multiple life cycle hooks.

 

AWS SageMaker Interview Questions and Answers

AWS DynamoDB Interview Questions and Answers

  

Ques: 8. What are some of the key best practices for security in Amazon EC2?

Answer:

  • Create individual IAM (Identity and Access Management) users to control access to your AWS recourses. 
  • Creating separate IAM user provides separate credentials for every user making it possible to assign different permissions to each user based on the access requirements. 
  • Secure the AWS Root account and its access keys. 
  • Harden EC2 instances by disabling unnecessary services and applications by installing only necessary software and tools on EC2 instances. 
  • Grant least privileges by opening permissions that are required to perform a specific task and not more than that. Additional permissions can be granted as required. 
  • Define and review the security group rules on a regular basis. 
  • Have a well-defined strong password policy for all the users. 
  • Deploy anti-virus software on the AWS network to protect it from Trojans, Viruses, etc.

 

AWS Cloudwatch interview Questions and Answers

AWS Elastic Block Store (EBS) Interview Questions and Answers

 

Ques: 9. What are the important features of a classic load balancer in EC2?

Answer: 

·         The high availability feature ensures that the traffic is distributed among EC2 instances in single or multiple availability zones. This ensures high scale of availability for incoming traffic.

·         Classic load balancer can decide whether to route the traffic or not based on the results of health check.

·         You can implement secure load balancing within a network  by creating security groups in a VPC.

·         Classic load balancer supports sticky sessions which ensure that the traffic from a user is always routed to the same instance for a seamless experience.

 

AWS Amplify Interview Questions and Answers

AWS Secrets Manager Interview Questions and Answers

 

Ques: 10. What happens when you reboot an EC2 instance?

Answer: 

Rebooting an instance is just like rebooting a PC. You do not return to image’s original state; however, the contents of the hard disk are same as before the reboot.


AWS Django Interview Questions and Answers

AWS Cloud Support Engineer Interview Question and Answers


Ques: 11. What Are the main features of Amazon Cloud Front?

Answer: 

Amazon Cloud Front is a web service that speeds up delivery of your static and dynamic web content, such as .html, .css, .js, and image files, to your users. CloudFront delivers your content through a universal network of data centres called edge locations


AWS Solution Architect Interview Questions and Answers

AWS Glue Interview Questions and Answers


Ques: 12. Explain storage for Amazon Ec2 Instance?

Answer: 

An instance store is a provisional storing type located on disks that are physically attached to a host machine. … This article will present you to the AWS instance store storage type, compare it to AWS Elastic Block Storage (AWS EBS), and show you how to backup data stored on instance stores to AWS EBS

Amazon SQS is a message queue service used by scattered requests to exchange messages through a polling model, and can be used to decouple sending and receiving components


AWS Cloud Interview Questions and Answers

AWS VPC Interview Questions and Answers         


Ques: 13. What is AWS Certificate Manager?

Answer: 

AWS Certificate Manager is an administration that lets you effortlessly arrangement, oversee, and send open and private Secure Sockets Layer/Transport Layer Security (SSL/TLS) endorsements for use with AWS administrations and your inward associated assets. SSL/TLS declarations are utilized to anchor arrange interchanges and set up the character of sites over the Internet and additionally assets on private systems. AWS Certificate Manager expels the tedious manual procedure of obtaining, transferring, and reestablishing SSL/TLS endorsements.


AWS DevOps Cloud Interview Questions and Answers

AWS Aurora Interview Questions and Answers


Ques: 14. What is the AWS Key Management Service?

Answer: 

AWS Key Management Service (AWS KMS) is an overseen benefit that makes it simple for you to make and control the encryption keys used to scramble your information. AWS KMS is additionally coordinated with AWS CloudTrail to give encryption key use logs to help meet your inspecting, administrative and consistence needs.


AWS Database Interview Questions and Answers

AWS ActiveMQ Interview Questions and Answers


Ques: 15. What is Amazon EMR?

Answer: 

Amazon Elastic MapReduce (EMR) is one such administration that gives completely oversaw facilitated Hadoop system over Amazon Elastic Compute Cloud (EC2).


AWS CloudFormation Interview Questions and Answers

AWS GuardDuty Questions and Answers


Ques: 16. What is Amazon Kinesis Firehose?

Answer: 

Amazon Kinesis Data Firehose is the least demanding approach to dependably stack gushing information into information stores and examination devices. … It is a completely overseen benefit that consequently scales to coordinate the throughput of your information and requires no continuous organization.


AWS Control Tower Interview Questions and Answers

AWS Lake Formation Interview Questions and Answers


Ques: 17. What Is Amazon CloudSearch and its highlights?

Answer: 

Amazon CloudSearch is a versatile cloud-based hunt benefit that frames some portion of Amazon Web Services (AWS). CloudSearch is normally used to incorporate tweaked seek abilities into different applications. As indicated by Amazon, engineers can set a pursuit application up and send it completely in under 60 minutes.


AWS Data Pipeline Interview Questions and Answers

Amazon CloudSearch Interview Questions and Answers 


Ques: 18. What is the Difference between the Service Role and SAML Federated Role?

Answer: 

Service Role are meant for usage of AWS Services and based upon the policies attached to it, it will have the scope to do its task. Example : In case of automation we can create a service role and attached to it.

Federated Roles are meant for User Access and getting access to AWS as per designed role. Example: We can have a federated role created for our office employee and corresponding to that a Group will be created in the AD and user will be added to it.


AWS Transit Gateway Interview Questions and Answers

Amazon Detective Interview Questions and Answers


Ques: 19. Distinguish between Scalability and Flexibility?

Answer: 

Cloud computing offers industries flexibility and scalability when it comes to computing needs:

Flexibility. Cloud computing agrees your workers to be more flexible – both in and out of the workplace. Workers can access files using web-enabled devices such as smartphones, laptops and notebooks. In this way, cloud computing empowers the use of mobile technology.

One of the key assistances of using cloud computing is its scalability. Cloud computing allows your business to easily expensive or downscale your IT requests as and when required. For example, most cloud service workers will allow you to increase your existing resources to accommodate increased business needs or changes. This will allow you to support your commercial growth without exclusive changes to your present IT systems.


Amazon EMR Interview Questions and Answers

Amazon OpenSearch Interview Questions and Answers


Ques: 20 What is SES, SQS and SNS?

Answer: 

SES (Simple Email Service): SES is SMTP server provided by Amazon which is designed to send bulk mails to customers in a quick and cost-effective manner.SES does not allows to configure mail server.

SQS (Simple Queue Service): SQS is a fast, reliable and scalable, fully managed message queuing service. Amazon SQS makes it simple and cost Effective. It’s temporary repository for messages to waiting for processing and acts as a buffer between the component producer and the consumer.

SNS (Simple Notification Service): SNS is a web service that coordinates and manages the delivery or sending of messages to recipients.

 

AWS FinSpace Interview Questions and Answers

AWS MSK Interview Questions and Answers



More AWS Interview Questions and Answers:


AWS EventBridge Interview Questions and Answers

AWS Simple Notification Service (SNS) Interview Questions and Answers

AWS QuickSight Interview Questions and Answers

AWS SQS Interview Questions and Answers

AWS AppFlow Interview Questions and Answers

AWS QLDB Interview Questions and Answers

AWS STEP Functions Interview Questions and Answers

Amazon Managed Blockchain Questions and Answers

AWS Message Queue(MQ) Interview Questions and Answers

AWS Serverless Application Model(SAM) Interview Questions and Answers

AWS X-Ray Interview Questions and Answers

AWS Wavelength Interview Questions and Answers

AWS Lightsail Questions and Answers

AWS Keyspaces Interview Questions and Answers



May 25, 2019

Top 20 Python Interview Questions and Answers

 
Ques: 1. So, what is Python?
 
Answer:
 
Python is an open source programming language that is widely used as one of the most popular interpreted languages. Objects, modules, threads, exceptions, dynamic typing, very high-level dynamic data types, classes, and memory management are all included. It's easy to use, portable, expandable, interpreted, interactive, object-oriented, and has a built-in data structure. It's also open source. It's paired with a very simple syntax. Python is portable and scriptable, but it is mostly thought of as a general-purpose programming language.
 


 
Ques: 2. What are the benefits of using Python?
 
Answer:
 
  • Python is one of the most success interpreted languages. Means that, Python scripts does not need to be compiled before it is run.
  • Python is an object oriented as it allows the definition of classes along with composition and inheritance.
  • In Python, functions and classes are first-class objects. It means that they can be assigned to variables, returned from other functions and passed into functions.
  • Python is dynamically typed, means that no need to state the types of variables when you declare them. You can declare variables without error like a=10 and then a="a good programmer".
  • Python code is very quick to write. The numpy package is a good example of this, it is very quick because a lot of the number crunching in it.
  • Python has a vast area to use in web applications, automation, scientific modelling, big data applications and many more.
  • It’s also often used as inclusive code to get other languages and components to use.
 
 
Python Pandas Interview and Questions
 
 
Ques: 3. What do you know about PEP 8?
 
Answer:
 
PEP is short for Python Enhancement Proposal. It defines a set of rules that specify how to format Python code for maximum readability. It is the latest Python coding standard, a set of coding recommendations. It guides to deliver more readable Python code.
 


 
Ques: 4. How does the Conversion from number to string happens in Python?
 
Answer:
 
To convert, the number to string, in Python, use the built-in function str(). For hexadecimal or octal representation conversion, use the built-in functions hex() or oct(). And for fancy formatting, use the % operator on strings, e.g. "%04d" % 144 yields '0144' and "%.3f" % (1/3.0) yields '0.333'.
 

C++ language Interview Questions and Answers


Ques: 5. What Is Class and method in Python? How will you use them?
 
Answer:
 
A class can be based on one or more other classes, called its base class(es). It then inherits the attributes and methods of its base classes. This allows an object model to be successively refined by inheritance.  A class is the object type created by executing a class statement. Class objects are used as templates to create instance objects, which embody both the data (attributes) and code (methods) specific to a data type.
 
A method is a function on some object x that you normally call as x.role(arguments...). Methods are defined as functions inside the class definition:
class C:
def names (self, arg):
return arg*2 + self.attribute.
 


 
Ques: 6. What are the some of the core default modules available in Python?
 
Answer:
 
There are a few of the core default modules available in Python.
 
    XML – Enables XML support.
    string – Contains functions to process standard Python strings.
    traceback – Allows to extract and print stack trace details.
    email – Help to parse, handle, and generate email messages.
    sqlite3 – Provides methods to work with the SQLite database.
    logging – Adds support for log classes and methods.
 


 
Ques: 7. What Is Self in Python?
 
Answer:
 
Self is just a name for the first argument of a method. A method defined as name(self, a, b, c) should be called as x.name(a, b, c) for some instance x of the class in which the definition occurs; the called method will think it is called as name(x, a, b, c).
 


 
Ques: 8. How Do I Generate Random Numbers In Python?
 
Answer:
 
The standard module random implements a random number generator. Usage is simple:
import random
random.random()
This returns a random floating point number in the range [0, 1).
But you can also generate random numbers in Python in different ways:
· uniform(X, Y) - It returns a floating point number between the values given as X and Y.
· randint(X, Y) - This command returns a random integer between the values given as X and Y.
 


 
Ques: 9. In Python, how memory is managed?
 
Answer:
 
The memory is managed by private heap space in Python. All objects and data structures located in a private heap. The developer/coder/programmer does not have any access to the private heap and interpreter will takes care of Python private heap in memory. The Python memory manager will allocate Python heap space for Python objects. The Python core APIs give access to some tools for the programmer to code. There is an inbuilt garbage collector in Python, which recycle all the unused memory and frees the memory and makes it available to the heap space.
 
 


Ques: 10. What are the available tools to search the bugs or perform static analysis?
 
Answer:
 
PyChecker is a static analysis tool that searches the bugs in source code and gives warnings about the complexity and style of the bug. And Pylint is another tool that checks whether the module satisfies the coding standard and makes sure to write plug-ins to add a custom feature.
 


 
Ques: 11. Can you explain the rules For Local and Global Variables in Python?
 
Answer:
 
Variables are only referenced inside a function and are implicitly global. A local variable is assigned a new value anywhere within the function's body. The variable is implicitly local, if a variable is assigned a new value inside the function. Otherwise, you need to explicitly declare it as 'global'. If global was required for all global references, you'd be using global all the time. You'd have to declare as global every reference to a built-in function or to a component of an imported module.
 
 
Ques: 12. What do you know about The Dictionary Function in Python?
 
Answer:
 
In python, you have to associate keys with values. Key should be unique because it is useful for retrieving information in Python. A dictionary is a place where you will find and store information on address, contact details, etc. In Python, the strings will be passed as keys.
 
Keys must be separated by a colon and the pairs are separated themselves by commas. And the whole statement will be enclosed in curly brackets.
 
 
Ques: 13. Can you explain the Sharing of Global Variables Across Modules in Python?
 
Answer:
 
The canonical way to share information across modules within a single program is to create a special module (often called config or cfg). Just import the config module in all modules of your application; the module then becomes available as a global name. Because there is only one instance of each module, any changes made to the module object get reflected everywhere. For example:
 
config.py:
x = 0 # Default value of the 'x' configuration setting
mod.py:
import config
config.x = 1
main.py:
import config
import mod
print config.x
 
 
Ques: 14. Do you know about Indexing and Slicing Operation in Sequences?
 
Answer:
 
Python supports two main operations which are indexing and slicing. Tuples, lists and strings are some examples about sequence. Indexing operation allows you to fetch an item in the sequence and slicing operation allows you to retrieve an item from the list of sequence. Python starts from the beginning and if successive numbers are not specified it starts at the last. In python the start position is included but it stops before the end statement.
 
 
Question: 15. What do you mean by Raising Error Exceptions in Python?
 
Answer:
 
Programmer can raise exceptions using the raise statements in python. While using exception statement, error and exception object must be specified first. This error should be related to the derived class of the Error. We can use this to specify about the length of the user name, password field.
 
 
Ques: 16. What do you mean by a Lambda Form?
 
Answer:
 
Make_repeater is used to create a function during the run time and it is later called at run time. The lambda statement is used to create a new function which can be later used during the run time. Lambda function takes expressions only in order to return them during the run time.
 
 
Ques: 17. What do you understand by Assert Statement?
 
Answer:
 
This statement is very useful when you want to check the items in the list for true or false function. This statement should be predefined because it interacts with the user and raises an error if something goes wrong. Assert statement is used to assert whether something is true or false.
 
 
Ques: 18. What are Pickling and Unpickling in Python?
 
Answer:
 
By specifying the dump function, you can store the data into a specific file and this is known as pickling. Python has a standard module known as Pickle which enables you to store a specific object at some destination and then you can call the object back at later stage. While you are retrieving the object, this process is known as unpickling.
 
 
Ques: 19. How a Tuple is different from a List?
 
Answer:
 
A tuple is a list that is immutable. A list is mutable, means that the members of a list can be changed and altered. But a tuple is immutable, it means that the members of list cannot be changed.
Other significant difference is of the syntax. A list is defined as
 
listA = [1,2,5,8,5,3,]
listB= ["John", "Alice", "Tom"]
A tuple is defined in the following way
tupX = (1,4,2,4,6,7,8)
tupY = ("John","Alice", "Tom")
 
 
Ques: 20. Does Python allow arguments Pass by Value or Pass by Reference?
 
Answer:
 
No, there is nothing like passing of the arguments by Value or pass by reference. Instead, they are Pass by assignment. Python does not support passing arguments by value or reference.
 
The parameter which you pass is originally a reference to the object not the reference to a fixed memory location. But the reference is passed by value. Additionally, some data types like strings and tuples are immutable whereas others are mutable.