Jotted down few questions which weer asked in an interview. They are just mind boggling man.
Depending on the logic only.............. :)
1---- Write a function whose parameter will be a binary string.... eg.. "01010101101010" etc..
and we have calculate the equivalent hexadecimal number of that binary string...
2------ W a function which will take a password string as its parameter and will return accepted or rejected as its return value based on the following validations
# p/w shud be in between the length of 6-11 letters only..
# p/w shud consists of one number but it shud not in the starting position and ending position.
# it shud have atleast one upper case letter as A-Z.
# it shud not have the repeated sequences.. as aaaaaA1q, aaS1xxaa, Aa112112, etc.,..
3------- W have two tables one big one and one small one and we have to search each element of the small table in the big table.. and the order of the elements shud be same in both tables.. it shud reject theduplicate elements
like big table is a,d,f,,re,r,e,g,t,h,f,d,s,f
small table is d,f,e,t,h
in both tables the order of elemnts is same...
based on these conditions write a function which will return true if possibilities are true anyways it will return false..
Struggling to find answers :)
No comments:
Post a Comment