Are you a candidate looking to sharpen your skills? Try our practice tests or view sample interview questions & Get hired by the best. Click Here×

C Programming Test (High)

Useful for hiring

  • Senior Level C Programmer
  • Front End Development - C Programming 
  • Embedded C - Senior Developer 

Start hiring job-fit candidates using this assessment

GET A DEMO

"The best part of Interview Mocha is they have topic wise questions available. The skill wise extensive reports and advanced analytics lets us measure & benchmark the proficiency level of employees in that particular skill."

Cheryl Tolkinen, Securian, USA,
Learning & Development Manager
Question

Tanika has a set of numbers and has recently studied set theory.
She has created a power set of this set and is writing a program to compute the sum of all elements of all the subsets of a power set. 

The power set of a set X is defined as a set of all possible subsets of X.
Set X consists of all the numbers from 1 to N.

You need to calculate this sum for a given N.

Example
Given N=3,
X={1,2,3}
P(X) = {{1}, {2}, {3}, {1,2}, {1,3}, {2,3}, {1,2,3}}
answer = (1)+(2)+(3)+(1+2)+(1+3)+(2+3)+(1+2+3)
= 24

Input
number N

Output
Sum of all elements of all subsets of number N

Sample Input
3

Sample Output
24


 

Test details:

The test enables employers and recruiters to identify potential hires by evaluating working skills and job readiness. For this reason, emphasis is laid upon evaluating the knowledge of applied skills gained through real work experience, rather than theoretical knowledge.
Questions : 2
Duration : 80 minutes

  • C Coding : The test contains 2 high level coding questions on C to check programming skills of a candidate.

Test description:

C Programming is basically a general purpose programming language which supports structured programming. It is widely used for system and application software. The various C Programming elements and concepts such as functions, loops, pointers, arrays should be used effectively by a programmer to solve the real world problems.

C Programming Test is designed mainly to assess the candidates having high performance in coding evaluation, knowledge of various functions and related codes. In this test, the programmer has to write the code by using C coding language.

Using powerful reporting, you will have detailed analysis of test results to help you make better decisions and predict candidate and employee success.

Good News! You can customize this test as per your requirement

  • Choose and add questions from Interview Mocha question libraries

  • Add your own set of questions

  • Customize test settings like duration, number of questions, passing score, web proctoring and much more

  • Mail us at support@interviewmocha.com to create a custom test

Looking for a tailor-made test, to suit your assessment needs?

Get in touch

Global companies using Mocha assessments

  • altran
  • credit suisse
  • sephora
  • nielsen
  • capgemini
  • akamai

How Mocha assessments are brewed

Speed up your IT recruitment with Interview Mocha

  • 500+ IT skill tests
  • 20+ coding languages
  • 50+ domain knowledge tests
  • 100+ digital 2.0 skill tests
  • Customer focus aptitude tests
  • Enterprise ready features & more...
GET A DEMO

Why hiring managers and recruiters across the globe love Interview Mocha

Take your first step to hire job fit candidates

GET A DEMO