Top Banner
Module – II C Basics
27

C Aptitude for To Crack IT Campus Drive

Nov 20, 2015

Download

Documents

ishwarkp17

It contain number of basic questions about C programming which help to crack the campus drive.
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
  • Module II

    C Basics

  • How do you construct an increment statement a increment statement or decrement statement in C?

  • How do you construct an increment statement a increment statement or decrement statement in C?

    What is the difference between call by value and call by Reference?

  • How do you construct an increment statement a increment statement or decrement statement in C?

    What is the difference between call by value and call by Reference?

    What is the equivalent code of the following statement in WHILE LOOP format?for (a=1;a

  • How do you construct an increment statement a increment statement or decrement statement in C?

    What is the difference between call by value and call by Reference?

    What is the equivalent code of the following statement in WHILE LOOP format?for (a=1;a

  • 5) In C programming, how do you insert qoute characters (and) into the output screen?

  • 5) In C programming, how do you insert qoute characters (and) into the output screen?

    6) What is the use of a \0 character?

  • 5) In C programming, how do you insert qoute characters (and) into the output screen?

    6) What is the use of a \0 character?

    7) What is the difference between the = symbol and == symbol?

  • 5) In C programming, how do you insert qoute characters (and) into the output screen?

    6) What is the use of a \0 character?

    7) What is the difference between the = symbol and == symbol?

    8) How do you declare a variable that will hold string values?

  • 9) What is syntax error?

  • 9) What is syntax error?

    10) What are variables and it what is it different from constants?

  • 9) What is syntax error?

    10) What are variables and it what is it different from constants?

    11) How do you access the values with an array?

  • 9) What is syntax error?

    10) What are variables and it what is it different from constants?

    11) How do you access the values with an array?

    12) Can I use int data type to store the value 32768? Why?

  • 13) Can two or more operators such as \n and \t be combined in a single line of program code?

  • 13) Can two or more operators such as \n and \t be combined in a single line of program code?

    14) Write a loop statement that will show the following output:112123123412345

  • 13) Can two or more operators such as \n and \t be combined in a single line of program code?

    14) Write a loop statement that will show the following output:112123123412345

    15) How do you generate random number in C?

  • 13) Can two or more operators such as \n and \t be combined in a single line of program code?

    14) Write a loop statement that will show the following output:112123123412345

    15) How do you generate random number in C?

    16) What are logical errors and how does it differ from syntax errors?

  • 17) What are the different types of control structures in programming?

  • 17) What are the different types of control structures in programming?

    18) Can the if function be used in comparing string?

  • 17) What are the different types of control structures in programming?

    18) Can the if function be used in comparing string?

    19) What is wrong with this statement? myName = Robin;

  • 17) What are the different types of control structures in programming?

    18) Can the if function be used in comparing string?

    19) What is wrong with this statement? myName = Robin;

    20) What are the different file extensions involved when programming in C?

  • 21) What would happen to x in this expression: X+=15; (Assuming the value of X is 5)

  • 21) What would happen to x in this expression: X+=15; (Assuming the value of X is 5)

    22) What is an endless loop?

  • 21) What would happen to x in this expression: X+=15; (Assuming the value of X is 5)

    22) What is an endless loop?

    23) What is wrong with this program statement? Void = 10;

  • 21) What would happen to x in this expression: X+=15; (Assuming the value of X is 5)

    22) What is an endless loop?

    23) What is wrong with this program statement? Void = 10;

    24) Is this program statement valid? INT = 10.50;

  • 21) What would happen to x in this expression: X+=15; (Assuming the value of X is 5)

    22) What is an endless loop?

    23) What is wrong with this program statement? Void = 10;

    24) Is this program statement valid? INT = 10.50;

  • End of Module II