What is your favorite subject?



What is your favorite subject?..

Answer / ankur verma

english

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

What is the main difference between calloc () and malloc ()?

0 Answers  


What is #include stdlib h?

0 Answers  


1. Write the function int countchtr(char string[ ], int ch); which returns the number of times the character ch appears in the string. Example, the call countchtr(“She lives in NEWYORK”, ‘e’) would return 3.

4 Answers  


What is structure data type in c?

0 Answers  


Explain two-dimensional array.

0 Answers  






What are the two types of structure?

0 Answers  


What is 2 d array in c?

0 Answers  


Write a program to generate random numbers in c?

0 Answers  


Explain what is page thrashing?

0 Answers  


Explain what are the different file extensions involved when programming in c?

0 Answers  


write a program to swap bits in a character and return the value prototype of function char fun (char a, charb flag c) where fun returns a char, char a is a the value char b is the bit to be changed and flag c is the bit value for eg: x=fun(45,7,0) since 45 is 0010 0101 and ow x should contain the value 65 (0110 0101)

1 Answers   Bosch, College School Exams Tests,


In cryptography, you could often break the algorithm if you know what was the original (plain) text that was encoded into the current ciphertext. This is called the plain text attack. In this simple problem, we illustrate the plain text attack on a simple substitution cipher encryption, where you know each letter has been substituted with a different letter from the alphabet but you don’t know what that letter is. You are given the cipherText as the input string to the function getwordSets(). You know that a plain text "AMMUNITION" occurs somewhere in this cipher text. Now, you have to find out which sets of characters corresponds to the encrypted form of the "AMMUNITION". You can assume that the encryption follows simple substitution only. [Hint: You could use the pattern in the "AMMUNITION" like MM occurring twice together to identify this]

0 Answers   Infosys,


Categories