Posts

Comparison of Linus Commands and Windows Command Line Commands.

Attributes                     Linus                                                       Windows 1. List Status                  ls                                                                dir 2. Change directory       cd                                                               cd 3. Open Editor               vi                     ...

Most likely Questions you face in Technical Interviews.

1. Write a Program to accept a number and print the number in reverse order. E.g. if 1324 is the number then the output will be 4231 in C language 2. Write a Program to accept a number and print sum of it’s digits in C language 3. Write a program to accept a number from user and check it it is Armstrong number or not i.e. 153 = 1^3 + 5^3 + 3^3 = 153 in C language 4. Write a program to print following outputs in C language * ** *** **** 5. Write a program to print following outputs in C language **** *** ** * 6. Write a program to print following outputs in C language       A     BBB   CCCCC DDDDDDD 7. Write a program to print outputs in C language. ABCDE EDCBA ABCD DCBA ABC CBA AB BA A A 8.  Write a program to accept a number from user and print it’s factorial in C language  Eg: factorial of 5 is:- 5! = 5 * 4 * 3 * 2 * 1=120 9.   How to get the first and the last element of a linked list  ...

Using Notepad via Command Line in Windows(CMD).

Create a file using command prompt in Windows Step 1: type nul > file1.txt Step 2: echo My Name is Vinay Kumar > file1.txt  Step 3: start notepad file1.txt

Changing MySQL Database Password for Wordpress

When we install WordPress for the first time on a blog, we create new database, new user and set a new password for it. We give the same details in wp-config.php file. Now I want to change database password but I'm worried that nothing should go wrong while doing this. So follow the steps. Which are the places which contain database password details and which places should I change to change the db password. Do as following: 1. First change db password using  cPanel -> Databases -> MySQL Databases.  Here it allows you to change current user password. 2. After changing password, set the same in wp-config.php file. And Its DONE.

Most frequently Asked and Important Interview Questions

Image
1. What is an Object ? Objects have states and behaviors. Example: A dog has states - color, name, breed as well as behaviors -wagging, barking, eating. An object is an instance of a class. 2. What is a Class ? A class can be defined as a template/ blue print that describes the behaviors/states that object of its type support. 3. What is a Methods ? A method is basically a behavior. A class can contain many methods. It is in methods where the logics are written, data is manipulated and all the actions are executed. 4. What is an Instance Variables ? Each object has its unique set of instance variables. An object's state is created by the values assigned to these instance variables. 5. Is Java Case Sensitive ? Yes,  Java is case sensitive, which means identifier  Hello  and  hello  would have different meaning in Java. 6. What is syntax for Class Name, Method Name and File Name ? Class Names -  For all class names the firs...

How to write your first program in C/C++ using Command Prompt in Windows

Image
Step 1: Install MinGW GCC Compiler for Windows Click Here to Download Step 2: Open CMD (Command Prompt) start notepad myfile.c <press enter> Step 2: gcc  myfile.c –o myfile  Step 3: myfile.exe Example: WAP for Factorial Calculation #include<stdio.h> int main() { int num,fact=1; scanf("%d",&num); for(int c=1; c<=num; c++) { fact = fact * c; } printf("%d",fact); return (0); } Output: Go to the dir where you have saved the file.    Hope it works for You. For any doubts please comment.

Install C/C++ through Eclipse IDE

Image
https://www.youtube.com/watch?v=KfKvDIrabUw *The owner of this video is having all the rights.