Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CS201 - Introduction to Programming important blanks for paper 2011
#1
Exercise No. 3.01

Answer each of the following:
Program components in C++ are called _______ and _______ .
A function is invoked with a _________ .
A variable that is known only within a function in which it is defined is called a ___________ .
The ________ statement is in a called function is used to pass the value of an expression back to calling function.
The keyword ________ is used in a function header to indicate that a function does not return a value or to indicate that a function contains no parameters.
The three ways to return control from a called function to a caller are ______ , _____ and _____ .
A ________ allows the compiler to check the number, types and order of the arguments passed to a function.
Function ________ is used to produce random numbers.
Function ________ is used to set the random number seed to randomize a program.
Function ________ is used to set the random number seed to randomize a program.


Solution


Program components in C++ are called functions and classes .
A function is invoked with a function call.
A variable that is known only within a function in which it is defined is called a local variable.
The return statement is in a called function is used to pass the value of an expression back to calling function.
The keyword void is used in a function header to indicate that a function does not return a value or to indicate that a function contains no parameters.
The three ways to return control from a called function to a caller are ______ , _____ and _____ .
A ________ allows the compiler to check the number, types and order of the arguments passed to a function.
Function ________ is used to produce random numbers.
Function ________ is used to set the random number seed to randomize a program.
Function srand() is used to set the random number seed to randomize a program.

0300-9520262
Get solution in 24 hour
|cpmputer & internetConfusedmileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  array project code c++ 2011 Vuhelper 0 1,272 12-10-2011, 06:32 PM
Last Post: Vuhelper
  factorial in C++ code 2011 Vuhelper 0 943 12-10-2011, 06:31 PM
Last Post: Vuhelper
  stack during function call in C++ 2011 Vuhelper 0 2,025 11-05-2011, 05:05 PM
Last Post: Vuhelper
  What is the Thing Queue? in c++ 2011 Vuhelper 0 1,785 11-05-2011, 05:02 PM
Last Post: Vuhelper
  ASCII to char conversion code in C++ 2011 Vuhelper 0 1,720 11-05-2011, 05:01 PM
Last Post: Vuhelper
  How to write a summation in a sequence? C++ 2011-12 Vuhelper 2 1,355 09-19-2011, 04:53 AM
Last Post: Xpert
  GetPixel problem in c++ 2011-12 Vuhelper 0 2,504 09-18-2011, 07:12 PM
Last Post: Vuhelper
  C++ with loop code 2011-12 Vuhelper 0 975 09-18-2011, 07:09 PM
Last Post: Vuhelper
  how can i read the last letter of a input file? 2011 Vuhelper 0 1,832 09-12-2011, 10:24 PM
Last Post: Vuhelper
  Different syntax? in c++ 2011-12 Vuhelper 0 1,760 09-12-2011, 10:22 PM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 1 Guest(s)