Tag Archives: computer officer exam

Write a program using C++ to create a payroll system of any organization. Use functions for updating, displaying and deleting the record of given payroll system

This ques­tion was asked in Com­puter Offi­cer Exam­i­na­tion 2010 con­ducted by Pub­lic Ser­vice Com­mis­sion. The ques­tion car­ried 10 mark. Fol­low­ing is the pro­gram for this ques­tion. I’ve tried to make it sim­pler and included most essen­tial components only.

The pro­gram was cre­ated using C++ on Visual Stu­dio 2005 with Ser­vice Pack 1 on Win­dows 7 oper­at­ing sys­tem. It is thor­oughly tested and with­out any warn­ing and errors.

Down­load:

Down­load C++ Source Code of Pay­roll Sys­tem — payroll.cpp


Posted in C++, Computer Officer, Examples, Practical Questions, Questions and Answers, Source Codes | Tagged C++ Example, computer officer exam, Download C++ Source Code, Download Payroll System, Public Service Commission | 3 Comments

Draw a graph and illustrate how depth-first search and breadth-first search differ

This was the first ques­tion in Com­puter Offi­cer Exam­i­na­tion in 2010 con­ducted by Pub­lic Ser­vice Com­mis­sion (Lok Sewa Aayog). This ques­tion is from the sec­tion ‘Data Struc­tures and Algo­rithms’. The ques­tion car­ries 10 marks.

Answer

bfs-dfs-graph

Breadth-first search (BFS) and depth-first search (DFS) are the two algo­rithms used for tra­vers­ing and search­ing a node in a graph. They can also be used to find out whether a node is reach­able from given node or not.

Posted in Algorithms and Data Structures, Computer Officer, Question Papers, Questions and Answers | Tagged BFS, Breadth-First Search, computer officer exam, Data Structures and Algorithms, Depth-First Search, DFS, Graphs, Lok Sewa Aayog, Public Service Commission, Solved Question of Computer Officer | 2 Comments