Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...



Programming Languages Interview Questions
Questions Answers Views Company eMail

Create a class TicTacToe that will enable you to write a complete program to play the game of Tic-Tac-Toe. The class contains as private data a 3- by-3 double array of integers. The constructor should initialize the empty board to all zeros. Allow two human players. Wherever the first player moves, place a 1 in the specified square; place a 2 wherever the second player moves. Each move must be to an empty square. After each move determine whether the game has been won and whether the game is a draw. If you feel ambitious, modify your program so that the computer makes the moves for one of the players automatically. Also, allow the player to specify whether he or she wants to go first or second. If you feel exceptionally ambitious, develop a program that will play three-dimensional Tic-Tac-Toe on a 4-by-4-by-4

2 16137

Why we need new operator in java at the time of object declaration and why not in c++?

Zensar,

1 7285

The expansion of GNU

3 8763

LOGIC OF Bodmas?

1 8058

what is the difference between thread and process

Infosys,

1 5159

how to access grid view row?

2239

oops concept is used for?

Synergy,

3 14126

main() { int i = -3,j=2,k=0,m; m= ++i || ++j && ++k; printf("%d%d%d",i,j,k,m); }

HCL,

7 25926

define c

HCL, TCS,

6 8347

where can i use pmcmd commands of informatica

1 6474

what is C?

Syntel,

9 11110

If I want to initialize the array like. int a[5] = {0}; then it gives me all element 0. but if i give int a[5] = {5}; then 5 0 0 0 0 is ans. what will I do for all element 5 5 5 5 5 in a single statement???

Amdocs, IBM,

3 6200

diff between Abstract class Interfaces?

4 6598

diff between Virtual mathod and abstract method?

1 3285

what is overloading and overriding?

7 8672


Un-Answered Questions { Programming Languages }

What is php constructor?

1021


What does the enum function in python do?

1088


What are the best sites to learn python?

936


Explain dependency injection?

732


What is drush command?

168


What is php and why it is used?

1037


How will you do the modules security updates in drupal?

215


Write a program to play a guessing game using random module?

826


How many types of php frameworks are there?

916


What is calloc() function?

1093


What are mutator methods in c++?

1162


Which namespace do the classes, allowing you to support COM functionality, are located?

2603


A good website has the following conditions It should be interactive. It should contain at least 20 images. Title cannot be null and should contain at least 10 letters other than spaces and hyphen (-). The keywords should contain atleast three among the following list : "design", "Graphics", "lovely", "beautiful", "amazing" and "mesmerising" Write a method: boolean isGoodWebsite(boolean isInteractive, int numOfImages, String title,String keywords[]) isInteractive whether the site is interactive or not numOfImages Number of images on the website title Title of the website keywords Array of keywords in the website.

2238


What are Descriptive analysis methods in R?

101


What is the difference between == and === operators in Kotlin?

223