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×

Online C# Quiz Test- High Level

Topics Covered

  • Class
  • Method
  • Object
  • Encapsulation
  • Inheritance
  • Constructors

Useful for hiring

  • Senior C# Developer
  • Senior C# programmer
  • Sr. C# Consultant

Start hiring job-fit candidates using this assessment

GET A DEMO

"We are impressed by the caliber, depth, and breadth of the assessments provided by Interview Mocha. With Interview Mocha's online proctoring & powerful reports, we are able to hire quality candidates overcoming geographical barriers."

Megan Akhras, J'Excelle,Canada,
Co-founder & director
Question

Recently, Michel found few straws each of length 1 inch in the storeroom. 

He took all of them and decided to mark a rectangular area on the floor with straws and warn the rest of the family members not to enter that area so that he can play in peace.

He wants to maximize that area. Write a program for him to find maximum area that he can cover in inches using Z straws.

Constraints:
A square cannot be considered as a rectangle.
Straws cannot be bent/broken while marking the rectangular area.

Input
The first line contains a single integer Z - Number of straws.

Output
Print the area of the largest rectangle that can be formed using the given straws.

Sample Input
9

Sample Output
3    i.e. (3*1)

 

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