Searching for "With"

Q:

Specify the CICS command used to read a VSAM record starting with prefix F. Code all the relevant options?

Answer

EXEC CICS READ


DATASET('FILENAME')


INTO(data-area)


RIDFLD(data-area)


KEYLENGTH(1)


GENERIC


LENGTH(WK-LEN)


END-EXEC.

Report Error

View answer Workspace Report Error Discuss

Q:

How do you insert a record with a nullable column?

Answer

To insert a NULL, move -1 to the null indicator


To insert a valid value, move 0 to the null indicator


 

Report Error

View answer Workspace Report Error Discuss

Q:

EXPLAIN has output with MATCHCOLS = 0. What does it mean?

Answer

a nonmatching index scan if ACCESSTYPE = 1


 

Report Error

View answer Workspace Report Error Discuss

Q:

Write a method to fill all the spaces in a string with '%20'

Answer

public class Test {


    public void replaseSpaces(char[] str, int length) {


        int spaceCount = 0, newLength = 0, i = 0;


        for(i = 0; i < length; i++) {


            if (str[i] == ' ') 


                spaceCount++;


        }


 


        newLength = length + (spaceCount * 2);


        str[newLength] = '\0';


        for(i = length - 1; i >= 0; i--) {


            if (str[i] == ' ') {


                str[newLength - 1] = '0';


                str[newLength - 2] = '2';


                str[newLength - 3] = '%';


                newLength = newLength - 3;


            }


            else {


                str[newLength - 1] = str[i];


                newLength = newLength - 1;


            }


        }


        System.out.println(str);


    }


 


    public static void main(String[] args) {


        Test tst = new Test();


        char[] ch = {'t', 'h', 'e', ' ', 'd', 'o', 'g', ' ', ' ', ' ', ' ', ' ', ' '};


        int length = 6;


        tst.replaseSpaces(ch, length);  


    }


}

Report Error

View answer Workspace Report Error Discuss

Q:

Logical puzzle

You want to send a secret message to your friend Alex in the mail. But Sam, who you don't trust, has access to all your mail. So you put your message in a box with a lock. But you are not allowed to send a key! How can you get your message through securely?

Answer

- Send the box with the lock to Alex. 


- Alex can't open it, but can put another lock on the box. 


- Alex sends this box with the 2 locks back to you, you unlock your lock and send it back to Alex again.


- So there is just Alex's lock on the box and Alex can now open it.

Report Error

View answer Workspace Report Error Discuss

Subject: Logic Puzzles

Q:

Who is the Indian Classical dancer credited with the first female dancer to learn Chhau form ?

Answer

Sonal Mansingh

Report Error

View answer Workspace Report Error Discuss

Q:

The First Indian Woman who has climbed Mt. Everest twice without the use of Oxygen is _________

Answer

Ang Dorjee

Report Error

View answer Workspace Report Error Discuss

Q:

In 1767 when the English waged the First Mysore War with Hyder Ali, the help of which indian partner did they get?

Answer

The Nizam of Hyderabad

Report Error

View answer Workspace Report Error Discuss

Subject: World History