• Home
  • Subscribe
  • Contribute Us
    • Share Your Interview Experience
  • Contact Us
  • About
    • About CSEstack
    • Campus Ambassador
  • Forum & Discus
  • Tools for Geek
  • LeaderBoard
CSEstack

What do you want to Learn Today?

  • Programming
    • Tutorial- C/C++
    • Tutorial- Django
    • Tutorial- Git
    • Tutorial- HTML & CSS
    • Tutorial- Java
    • Tutorial- MySQL
    • Tutorial- Python
    • Competitive Coding Challenges
  • CSE Subject
    • (CD) Compiler Design
    • (CN) Computer Network
    • (COA) Computer Organization & Architecture
    • (DBMS) Database Management System
    • (DS) Data Structure
    • (OS) Operating System
    • (ToA) Theory of Automata
    • (WT) Web Technology
  • Interview Questions
    • Interview Questions- Company Wise
    • Interview Questions- Coding Round
    • Interview Questions- Python
    • Interview Questions- REST API
    • Interview Questions- Web Scraping
    • Interview Questions- HR Round
    • Aptitude Preparation Guide
  • GATE 2022
  • Linux
  • Trend
    • Full Stack Development
    • Artificial Intelligence (AI)
    • BigData
    • Cloud Computing
    • Machine Learning (ML)
  • Write for Us
    • Submit Article
    • Submit Source Code or Program
    • Share Your Interview Experience
  • Tools
    • IDE
    • CV Builder
    • Other Tools …
  • Jobs

PwC Written Test, Interview Questions and Answers for Python Developer

Want to Share your Interview Experience?/12783/2
Placement Interview

I have attended the PwC drive in Bangalore, India. One of the consultancies shortlisted my profile online for PwC job recruitment.

Freshers, as well as experienced candidates, were allowed for this job recruitment.

There was a written test followed by technical and HR interviews.

I’m sharing my PwC interview questions and coding round experience.

PwC Python Coding Questions | Written Test

All the questions were on Python. There were 10 multiple choice questions (MCQ) and four coding questions to write snippet.

This was an on-paper test. Following are some of the technical questions I can remember.

Note: There were no aptitude questions.

1. There was one simple class program in which there were two functions- init() and myFunc().

class myClass:
  __init__():
    self.x=10
    self.__y=20

obj=myClass()
print(obj.__y)

Answer:

This program is related to the name mangling concept in Python as variable y is prefixed by __ (double underscore).  We can not access this variable directly. So this will throw an error.

2. What is the output if you run the following command.

python -c "import sys; sys.argv[0]"

Answer:

In Python ‘-c’ flag can be used to run the Python code directly from the command prompt/ terminal. You can write multiple lines of code separated by ‘;’

Output:

-c

3. When there is no return statement in the function definition, what is the default return type of the function?

Options:

int
bool
float
none

Answer:

none

None is the special data type in Python.

4. What is the output of the following program?

l=list('HELLO')
print("first={0[0]}, third={0[2]}".format(l))

Output:

['H', 'E', 'L', 'L', 'O']
first=H, third=L

5. If you run the following Python code, what will be the output?

for i in ''.join(reversed(list('abcd'))):
    print(i)

Output:

d
c
b
a

6. There was one question about the main modules in Python. They have given four option, you have to choose the wrong statement.

7. Which of the following is not the keyword in exception handling?

Options:

try
except
accept
finally

Answer:

accept

PwC Python Coding Questions

8. Write a program to filter all the list elements which are even number between 1 and 20 (both numbers are inclusive).

obj=lambda x: (x%2==0)
li=range(1, 21)
print(list(filter(obj, li)))

Output:

[2, 4, 6, 8, 10, 12, 14, 16, 18, 20]

Read lambda and filter function in Python.

There were some questions on pandas Python module.

9. Read the sample CSV file excluding first line using Pandas Dataframe.

Answer:

Use read_csv() from padas for reading CSV file into the dataframe.

Refer different methods to read CSV file in Python.

10. There are three columns in the CSV file (ID, value, key). Write a program to calculate the mean value grouped by key.

11. If the value of the key is ‘a’, replace it with ‘a_1’ in the dataframe.

You might face some other Python interview questions. Be prepared for it.

There were almost about 15 candidates. You will be having interviews if you crack the written test.

PwC Interview Questions| How to crack?

In a technical interview, they can ask you to explain your code from the written test. You can expect more questions about different concepts in Python.

If you do well in the technical interview, you will be having the HR round. For the HR round, prepare for basic HR questions.

As per I read about PwC, there is no much work-life balance. You have to stretch your working hours to complete the assigned projects. If you are preparing for PwC (PricewaterhouseCoopers) India, make a note of this.

All the best!


Editors’ Note: This PwC interview questions, written test, and experience is shared by Nilesh Varma. We wish him all the best!

Python Interview Questions eBook

interviewPwCPython
Want to Share your Interview Experience?
This interview questions and experience are shared by one of the readers like you. You can share your interview experience as well. If you want to help new job aspirants to get their dream job, kindly share your experience on CSEstack Portal, by filling this simple form. It will be published on our portal. Thank You!

Your name can also be listed here. Got a tip? Submit it here to become an CSEstack author.

Comments

  • Reply
    Shakira Jardine
    April 9, 2020 at 8:23 pm

    Thanks for sharing this experience. I attended my interview with PwC. But, their procedure was totally different. And this was online this time because of lockdown.

    • Reply
      Aniruddha Chaudhari
      April 10, 2020 at 8:26 am

      Might be because of this lockdown time, they changed the way of their recruitment. All the best!

Leave a Reply Cancel reply

100+ Company’s Interview Questions



You can share your interview experience.

Job Preparation Stack

03 Types of IT Engineers in Demand

05 Programming Skills for Jobs

05 Programming for High Paying Jobs

11 Software Developer Skills for Jobs

07 Tips for Standard CV Format

05 Guidelines for Writing Best SoP

13 Aptitude Preparation Tips

07 Steps for Effective Job Search

07 HR Interview Questions

57 Coding Interview Questions

57 Python Interview Questions

Summer Internships 2022

Why Internship?

Apply Internships in IIT, NIT, IIIT

Programming Tutorials

C/C++ Programming

Python Programming

Java Programming

© 2022 – CSEstack.org. All Rights Reserved.

  • Home
  • Subscribe
  • Contribute Us
    • Share Your Interview Experience
  • Contact Us
  • About
    • About CSEstack
    • Campus Ambassador
  • Forum & Discus
  • Tools for Geek
  • LeaderBoard