Programming in C - Master Assignment

1. An object oriented language is used because

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *


2. In the statement template << class T>>,

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *


3. The order of an algorithm that finds whether a given boolean function of 'n' variables, produces an output 1 is

  • Option : D
  • Explanation :
    In the worst case it has to check all the 2" possible input combinations, which is exponential.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *


4. If following program (myprog)is run from the command line as myprog friday tuesday sunday then what would be the output?
main (int argc,char*argv)
{
printf("%c",**++argv);
}

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *


5. The number of binary strings of n zeroes and K ones such that no two ones are adjacent, is

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *