The Database Managers, Inc.

Contact The Database Managers, Inc.


Use an RSS enabled news reader to read these articles.Use an RSS enabled news reader to read these articles.

C++ Problem Solving

by Curtis Krauskopf

Computer programs are designed to solve problems. These programs test your ability to solve problems. The programs are small enough that they can be done on paper with the interviewer.

  1. Find the number of bits in an unsigned integer data type without using the sizeof() function.
  2. Multiply an integer by 8 without using multiplication or addition.
  3. Write a function that adds two signed integers and checks for overflow. When an overflow is detected, cause an appropriate exception to be thrown.
  4. Write a program that counts the number of 'x' characters in an input stream. Assume the stream is binary.
  5. Write a program that detects if a text file is in Windows format (CR followed by LF) or in Unix/Linux format (CR) or in Mac format (LF). For this problem, it's okay to assume that all lines in the text file terminate the same way.
Previous Questions More C++ Questions
Jump to Questions Page:  1  2  3  4  5  6  7  8  9  10  11  12  13 
 
Jump to Answers Page:  1  2  3  4  5  6  7  8  9  10  11  12  13 
Services | Programming | Contact Us | Recent Updates
Send feedback to: