Monthly Archives: August 2017

QUICK ENQUIRY FORM



WHAT WILL HAPPEN WHEN YOU SUBMIT THIS FORM

  • After submitting the enquiry, you will be contacted by our team.
  • Payilagam Team will get to know about your training needs.
  • They will update you how could they help you.
  • Trainers(IT Professionals) may contact you if you need any clarification.
  • Your contact information will be kept highly confidential & not be shared to 3rd Parties.
Quick Enquiry

Software Testing – What I should focus?

This is the primary question – in Software Testing – What I should focus? for everybody who enters into Software Testing.  Here with, I have mentioned some of the major things which should be given enough importance while testing software. Files Related Testing: If we test downloading a File, We should test Special Characters in File Name allowed or not allowed Have enough space for downloading a file or not. File Name already exists or not. Date Related Testing: Leap Year Days and Non Leap Year Days Daylight Saving Time. If we use two different systems, time difference between those machines. Number Related Testing: Negative numbers permitted or not. Decimal values allowed or not. Commas and Dots are properly placed or not. Word Related Testing: Empty space is allowed or not. Leading Space / Trailing space allowed or not. Web Application Testing: Update any form in the web page and refresh the page. Verify updated information is present or not. Useful Links: http://validator.w3.org/ http://wave.webaim.org http://browsershots.org/ http://linter.structured-data.org/ http://xml.coverpages.org/css.html http://jigsaw.w3.org/css-validator/

By |August 31st, 2017|Blogs|0 Comments

Adding two byte/short values cannot store in same datatype

Hi Friends, Today we going to see about reason why two byte/short cannot be store in same datatype. In general, the value assign to variable can be convert into binary format. byte a = 5; byte b = 4; byte c = a + b; The line 3 will have compile error, even though the value is smaller its because, The value 5 is assign to variable ‘a’, it convert to 32 byte of binary format the value 4 is assign to variable ‘a’, it convert to 32 byte of binary format In order to perform the basic processing of data need 32 bits as per our CPU design. the output result data is also 32 bits, so it need 32 bits capable store datatype. int c= a+b;

By |August 26th, 2017|Blogs|0 Comments

Software Testing Interview Scenario Based Questions

Hi, we will discuss about various Software Testing Interview Scenario based questions here with.  In every software testing interview, the candidates will be requested to write test cases.  Usually, organizations will ask us write scenarios for which we know the functionality already. Eg.  Write test cases for pen, Please share test cases for a chair, etc.  The below are similar kind of questions but should be handled with some better understanding of Software Testing. Software Testing Interview Scenario Based Questions: In ATM Machine, you have to verify if incorrect PIN entered at the third time shows you “Account Locked” message.  The only condition is you have to test only the third time scenario alone (not first and second).  What will be the best approach to test this scenario? You have antivirus software installed.  This software expires in two days where your office is leave for next three days.  How do you test this? There is a lift which stops only in 1st, 3rd and 5th Floors. In the lift entrance of 3rd floor, one person is waiting to go to 5th floor.  He presses ‘IN’ switch.  At the same time, another person is pressing ‘IN’ switch in 5th floor to move to 1st floor.  At this time, lift is moving from 1st floor.  Please write possible test cases for this scenario. In an application form, there are 3 Mandatory fields (Name, Mobile No and Mail ID) and 3 Optional fields.  How many possible test cases can be derived for this scenario? A Training institute has website which shows courses and their syllabuses.  The owner of the institute decides to include Online Quiz in the syllabus for the courses.  He needs a Quiz popup to be […]

By |August 21st, 2017|Blogs|0 Comments

Data Types: Storing character in integer and vice versa with Program

Data Types: Storing character in integer and vice versa with Program This blog explains about Data Types: Storing character in integer and vice versa with Program and is given below : _______________________________________________________________________________ Hi Friends, Today, we are going to see about how to Data Types: Storing character in integer and vice versa with Program  store character in ‘int’ variable and number in ‘char’ datatype. Storage of integer and character values in C Integer and character variables are used so often in the programs, but how these values are actually stored in C are known to few. Below are a few examples to understand this: Taking a positive integer value as char: #include <stdio.h> int main() {     char a = 278;     printf(“%d”, a);        return 0; } Output: 22 Explanation:  First, compiler converts 278 from decimal number system to binary number system(100010110) internally and then takes into consideration only the first 8 bits from the right of that number represented in binary and stores this value in the variable a. It will also give warning for overflow. Taking a negative integer value as char: #include <stdio.h> int main() {     char a = -129;     printf(“%d”, a);        return 0; } Output: 127 Explanation:  First of all, it should be understood that negative numbers are stored in the 2’s complement form of their positive counterpart. The compiler converts 129 from decimal number system to binary number system(10000001) internally, and then, all the zeroes would be changed to one and one to zeroes(i.e. do one’s complement)(01111110) and one would be added to the one’s complement through binary addition to give the two’s complement of that number (01111111). Now, the rightmost 8 bits of the two’s complement would be taken and stored as it […]

By |August 20th, 2017|Blogs|0 Comments

Find Even or Odd without using if and switch case

Find Even or Odd without using if and switch case This blog explains about how to Find Even or Odd without using if and switch case and is illustrated below : _______________________________________________________________________________ Hi Friends, Today, we are going to find Even or Odd Without using if and switch case.  The question asked here is – Write a program to find out if the given number is odd or even without using conditional statement like if or switch case. Solution : It is mentioned that We should not use if and switch case.  That is the clue we should remember here.  Hence, for finding out odd or even without those, we can go for array concept.  Let me try a simple Java program with a String array which consists of just two elements. Print “Even” or “Odd” without using conditional statement Write a C/C++ program that accepts a number from the user and prints “Even” and “Odd”. Your are not allowed to use any comparison (==, <, >..etc) or conditional (if, else, switch, ternary operator,..etc) statement. Method 1    1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 #include<iostream> #include<conio.h>   using namespace std;   int main() {   char arr[2][5] = {“Even”, “Odd”};   int no;   cout << “Enter a number: “;   cin >> no;   cout << arr[no%2];   getch();   return 0; }     Explanation:- Shortest logic ever is arr[no%2] which would return remainder. If remainder become 1, it will print “Odd”. And if remainder become 0, it will print “Even”.  Method 2   1 2 3 4 5 6 7 8 9 10 #include<stdio.h>   int main() {     int no;     printf(“Enter a no: “);     scanf(“%d”, &no);     (no & 1 && printf(“odd”))|| printf(“even”);     return 0; […]

By |August 13th, 2017|Blogs|0 Comments

Learn Programming through Logical Thinking Series – 12

Learn Programming through Logical Thinking Series – 12 This blog explains about Learn Programming through Logical Thinking Series – 12 and is given below :  _______________________________________________________________________________ Hi Guys, Logic in programming is a fundamental key to be a good developer. Maybe, depending of your job place you are going to use more algorithms or not. If you are a web designer probably you are not going to deal with complex algorithms, but if you are front-end developer maybe a little more and if you are a back-end developer much more. 1.- Think to solve   Programming is about solving problems, a good tecnique is to split the big problem in small ones to focus on each problem in a better way, you can use pseudocodes in a program or in a simple paper. 2.- Practice   The most important point is this: practice. An algorithm is nothing more than an ordered and finite set of operations that we carry out for the sole purpose of finding a solution to a problem. So try to practice simple problems to get a better logic. 3.- Learn about Data Structures and Algorithms   Learning about structures will give you a better plan to focus your problems and have an efficient software. You can play games like Chess and practice Mathematics. 4.- Learn programming paradigms   A very good point is to learn programming paradigms. Probably one of the most programming paradigm is the The Object-Oriented Paradigm (OOP). A programming paradigm is like a blueprint to follow to create our projects. You can learn Functional Programming to learn how you can develop programs and solve problems in a different way. 5.- Look at other people’s code   In programming we have many ways to solve problems, maybe another person solved the […]

By |August 10th, 2017|Blogs|0 Comments

Learn Programming through Logical Thinking Series – 11

Learn Programming through Logical Thinking Series – 11  This blog explains about Learn Programming through Logical Thinking Series – 11 and is given below : _______________________________________________________________________________ Print a ‘Y’ shaped pattern from asterisks in N number of lines. Note: N is even. Input: The first line of input contains an integer T denoting the number of test cases. Then T test cases follow. Each test case consists of a single line contanining an integer N. Output: Corresponding to each test case,in a new line, print Y shaped pattern from asterisks in a single line considering spaces. Constraints: 1 ≤ T ≤ 100 4 ≤ N ≤ 200 Example: Input 2 4 8 Output *   * * *   *    *   * * * * * * * * * * * * Explanation: For the 1st test case where N = 4 * * * * * * The above is the proper Y shaped pattern for the test case, but when printed in a single line it becomes as shown in the output. Please mind there are 2 spaces after the single * in the last row which has to be printed in single line also. Shall we try Y Pattern today through a Java Program?  The need is, we should bring Program: package pattern.aug; public class Ypattern { public static void main(String[] args) { // TODO Auto-generated method stub //1stline System.out.print(“*”); for(int i=0;i<5;i++) { System.out.print(” “); } System.out.print(“*”); System.out.println(); //2nd line System.out.print(” “); System.out.print(“*”); for(int i=0;i<3;i++) { System.out.print(” “); } System.out.print(“*”); System.out.println(); //3rd line for(int i=0;i<2;i++) { System.out.print(” “); } System.out.print(“*”); System.out.print(” “); System.out.print(“*”); System.out.println(); //remaining lines int n=0; while(n<3){ int row=0; while(row<3-n) { System.out.print(” “); row++; } System.out.print(“*”); System.out.println(); n++; } } } Output: _______________________________________________________________________________ […]

By |August 10th, 2017|Blogs|0 Comments

Learn Programming through Logical Thinking Series – 10

Learn Programming through Logical Thinking Series – 10 This blog explains about Learn Programming through Logical Thinking Series – 10 and is given below :  _______________________________________________________________________________ Hi, In today’s post, we discuss about printing X pattern.  Already we know how to use looping statements in Java.  Here I am using while – nested while looping statements to derive X pattern.  The expected output is Code: public static void printCross(int size, char display) { for (int row = 0; row < size; row++) { for (int col = 0; col < size; col++) { if (row == col || row + col == size – 1) { System.out.print(display); } else { System.out.print(” “); } } System.out.println(); } } Output:  (size = 5, display = ‘x’) x x x x x x x x x X Pattern Program public class XPattern { public static void main(String[] args) { int i=0,j; while(i<3){ j=0; while(j<(i*1)){ System.out.print(” “); j++; } int k=0; while(k<=(i-i)){ System.out.print(“*”); k++; } k=0; while(k<(4-(2*i))){ System.out.print(” “); k++; } k=0; while(k<=(i*0)){ System.out.print(“*”); k++; } System.out.println(); i++; } i=1; while(i>=0){ j=0; while(j<(i*1)){ System.out.print(” “); j++; } int k=0; while(k<=(i*0)){ System.out.print(“*”); k++; } k=4; while(k>(i*2)){ System.out.print(” “); k–; } j=0; while(j<=(i*0)){ System.out.print(“*”); j++; } System.out.println(); i–; } }} Output: There are various programs to print X pattern using *  // Java program to  // print cross pattern  class GFG {    // Function to print given  // string in cross pattern static void pattern(String str,                     int len) {            // i and j are the indexes      // of characters to be      // displayed in the ith      // iteration i = 0 intially      // and go upto length of string     // j = length of string initially      // in each iteration […]

By |August 10th, 2017|Blogs|0 Comments

Learn Programming through Logical Thinking Series – 9

Learn Programming through Logical Thinking Series – 9 This blog explains about Learn Programming through Logical Thinking Series – 9 and is given below : _______________________________________________________________________________ In this series, probably this could be the toughest program I ever tried.  Already our colleague Srilatha Akka shared the logic for this program in the previous post  in C Language to solve this problem.  Well, First of all – What is the problem to be solved?  Let me share you that! The above pattern should be printed.  I am sharing my logic here with for deriving the above pattern here with. ABCD Pattern Program in Java public class AsciiTry { public static void main(String[] args) { int i=0,j,k,r,s,l,m; while(i<5){ j=0; while(j<(i*1)){ System.out.print(” “); j++; } k=0; while(k<=(i*0)){ r=65+i; System.out.printf(“%c”,r); k++; } l=0; while(l<7-(i*2)){ System.out.print(” “); l++; } m=0; while(m<=(i*0)){ s=73-i; if(s==69) break; System.out.printf(“%c”,s); m++; } l=7; while(l>7-((i*2)-1)){ System.out.print(” “); l–; } k=0; while(k<=(i*0)){ r=73+i; if(r==73){ break; } System.out.printf(“%c”,r); k++; } l=0; while(l<7-(i*2)){ System.out.print(” “); l++; } m=0; while(m<=(i*0)){ s=81-i; if(s==77) break; System.out.printf(“%c”,s); m++; } l=7; while(l>7-((i*2)-1)){ System.out.print(” “); l–; } k=0; while(k<=(i*0)){ r=81+i; if(r==81) break; System.out.printf(“%c”,r); k++; } l=0; while(l<7-(i*2)){ System.out.print(” “); l++; } m=0; while(m<=(i*0)){ s=89-i; if(s==85) break; System.out.printf(“%c”,s); m++; } l=7; while(l>7-((i*2)-1)){ System.out.print(” “); l–; } k=0; while(k<=(i*0)){ r=89+i; if(r==89) break; if(r==91) break; if(r==92) break; if(r==93) break; System.out.printf(“%c”,r); k++; } System.out.println(); i++; } } } _______________________________________________________________________________ Program to print patter like ‘W’ in java import java.util.Scanner; public class Pattern23 { // create class for printing “*” star. private static void stars(int count) { for (int i = 0; i < count; ++i) System.out.print(“*”); } // create class for printing ” ” space. private static void spaces(int count) { for (int i = 0; i < count; ++i) System.out.print(” […]

By |August 6th, 2017|Blogs|0 Comments

Learn Programming through Logical Thinking Series – 8

This is one of the toughest questions, we discussed in our Programming class.  I spent almost 3 hours (or even more than that) to solve the below program.  My trainer asked to work on printing the below pattern program. I wrote in C language.  Please go through the program below.  As it is mainly dealing with looping statements, you can make use of the same logic in any programming language like Java, C#, etc. #include<stdio.h> #include<conio.h> void main() { int i,j,k,l,m,z=1,n,o,p,q,r,s,t,u,v,w; clrscr(); for(i=1;i<=5;i++) { for(j=1;j<i;j++) { printf(” “); } for(k=1;k<=z;k++) { printf(“%c”, i+64); } for(l=1;l<=9-(2*i);l++) { printf(” “); } for(m=1;m<=z;m++) { if(i==5){ break;} printf(“%c”, 74-i); } for(n=1;n<(2*i)-2;n++) { printf(” “); } for(o=1;o<=z;o++) { if(i==1){break;}; printf(“%c”,i+72); } for(p=1;p<=9-(2*i);p++) { printf(” “); } for(q=1;q<=z;q++) {  if(i==5){break;} printf(“%c”,82-i); } for(r=1;r<(2*i)-2;r++) { printf(” “); } for(s=1;s<=z;s++) { if(i==1){break;} printf(“%c”,i+80); } for(t=1;t<=9-(2*i);t++) { printf(” “); } for(u=1;u<=z;u++) { if(i==5){break;} printf(“%c”,90-i); } for(v=1;v<(2*i)-2;v++) { printf(” “); } for(w=1;w<=z;w++) { if(i==2){ printf(“%c”,i+88); }} printf(“\n”); } getch(); }

By |August 6th, 2017|Blogs|0 Comments