In Foucs on C++ exam

K

kickioly

Hi everybody.
First I would like to thank everybody who they reply me in my first
topic.

Secondly This is our exam that i had taken it, i got 14 of 20.

http://learn.ajman.ac.ae/file.php/9/Exams/Solution_ProgIIFT20061.pdf
A three question i'd like to ask all members here.

Q1: If you take this exam like that, what do u think you will got ?
Q2: Do you agree to put (logical problems) in exams?
Q3: As C++ Programmer, Do you agree to study C++ in theory mothod ?
(without a computer)

And agian...
Thanks
 
C

cppcoder

Repost the link, I will try to help you answer the questions FASTER.
Trust me! :-D
 
A

Aff@n

Please give the link again..
By clicking on the link the page appears to give username and
password..
waiting for your response.
 
K

kickioly

Question 1
Write a C++ function, LargestIndex, which takes as parameters an
integer array
and its size, and returns the index of the largest element in the
array.


Question 2
Write a C++ function, CopyString, which takes as parameters two
C-strings st1 and
st2. Using a loop, it should copy the content of st1 in st2.

Question 3
Write a C++ function, SmallestIndex, which takes as parameters an
integer array
and its size, and returns the index of the smallest element in the
array.

Question 4
Write a C++ function, CompareString, which takes as parameters two
C-strings st1
and st2. Using a loop, it should compare st1 and st2 and return true if
they are equal,
false otherwise.

Question 5
Write a C++ function that takes as parameters an integer array TAB and
its size. It
should return the smallest and the largest elements in TAB.

Question 6
Write a C++ function that takes as parameter a C-string st1. Using a
loop, it should
display each character of st1 in a separate line.

Question 7
Write a C++ function that takes as parameters an array of characters
TAB and its size.
It should return the smallest and the largest characters in TAB.

Question 8
Write a C++ function that takes as parameter a C-string st1. Using a
loop, it should
count the number of vowels in st1.

Question 9
Write a C++ function that takes as parameters an integer array TAB and
its size. It
should return the sum and average of all elements in TAB.

Question 10
Write a C++ function that takes as parameter a C-string st1. Using a
loop, it should
count the number of spaces in st1.

Question 11
Write a C++ function that takes as parameters an integer array TAB, its
size and an
integer value. It should return the number of times value appears in
TAB.

Question 12
Write a C++ function that takes as parameter a C-string st1. Using a
loop, it should
display each word of st1 in a separate line.

----------------End of Exam----------------------

soloution will be published soon.
 
B

benben

Q3: As C++ Programmer, Do you agree to study C++ in theory mothod ?
(without a computer)

If what you call "theory method" means learning without actually writing
a program, compile it and run it, then no, I don't agree.

They only languages you can learn without a computer are human languages.

Regards,
Ben
 
B

Bo Persson

Question 1
Write a C++ function, LargestIndex, which takes as parameters an
integer array
and its size, and returns the index of the largest element in the
array.


Question 2
Write a C++ function, CopyString, which takes as parameters two
C-strings st1 and
st2. Using a loop, it should copy the content of st1 in st2.

Question 3
Write a C++ function, SmallestIndex, which takes as parameters an
integer array
and its size, and returns the index of the smallest element in the
array.

Question 4
Write a C++ function, CompareString, which takes as parameters two
C-strings st1
and st2. Using a loop, it should compare st1 and st2 and return
true if they are equal,
false otherwise.

Question 5
Write a C++ function that takes as parameters an integer array TAB
and its size. It
should return the smallest and the largest elements in TAB.

Question 6
Write a C++ function that takes as parameter a C-string st1. Using a
loop, it should
display each character of st1 in a separate line.

Question 7
Write a C++ function that takes as parameters an array of characters
TAB and its size.
It should return the smallest and the largest characters in TAB.

Question 8
Write a C++ function that takes as parameter a C-string st1. Using a
loop, it should
count the number of vowels in st1.

Question 9
Write a C++ function that takes as parameters an integer array TAB
and its size. It
should return the sum and average of all elements in TAB.

Question 10
Write a C++ function that takes as parameter a C-string st1. Using a
loop, it should
count the number of spaces in st1.

Question 11
Write a C++ function that takes as parameters an integer array TAB,
its size and an
integer value. It should return the number of times value appears in
TAB.

Question 12
Write a C++ function that takes as parameter a C-string st1. Using a
loop, it should
display each word of st1 in a separate line.

----------------End of Exam----------------------

Just wonder how this differs from the C exam?

I would have expected some "class", "template", and "using the standard
library".


Bo Persson
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,216
Latest member
topweb3twitterchannels

Latest Threads

Top