Levels Tought:
Elementary,Middle School,High School,College,University,PHD
Teaching Since: | Jul 2017 |
Last Sign in: | 212 Weeks Ago, 2 Days Ago |
Questions Answered: | 15833 |
Tutorials Posted: | 15827 |
MBA,PHD, Juris Doctor
Strayer,Devery,Harvard University
Mar-1995 - Mar-2002
Manager Planning
WalMart
Mar-2001 - Feb-2009
1.What is the array length (i.e., size) after this declaration:   int foo [ ] = {10, 20, 40, 50, 60, 70};
  A.4
  B.5
  C.6
  D.7
2.     Given the array:  int foo [5] = {10,20,30,40, 50};   .... what would be printed from:  printf ("%i", ++foo [3] );
  A.30
  B.31
  C.40
  D.41
3.     Given an array defined as:   int foo [5];  ... the following statement is never a problem:  foo [5] = 12;
  True
  False
Â
4.     Given  int foo [50];   .... what is an equivalent way to represent:  & foo [0]
  A.foo&
  B.foo
  C.foo [0]
  D.None of the above
5.     What is the index number of the last element of an array declared as follows:  int foo [30];
  A.28
  B.29
  C.30
  D.0
Â
6.     Which of the following correctly accesses the 8th element stored in foo, an array of 1000 elements?
  A.foo [6]
  B.foo [7]
  C.foo [8]
  D.foo [9]
----------- Â ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly