Very Good Salman! :)
We need not do knit picking here. But you should definitely get through, what were other big questions?
Which School/College exams are these?
Printable View
Very Good Salman! :)
We need not do knit picking here. But you should definitely get through, what were other big questions?
Which School/College exams are these?
i'm doing BCS and this was our exam for the end of the first semester.. that was the objective portion..
Q2(a) Explain logical operators used in C with examples
(b) write the truth table for each logical operator
(c) Write a program that input a four digit number and output the sum of individual digits in the number
Q3(a) Two numbers are entered trhough keyboard, write a program to find the value of one number raised to the power of another
(b) Write a program that input a number, calculate its factorial and output the result
Q4(a) What is a function? Why use functions in C
(b) Write a function that recieve an array of marks of 10 students and determine the highest marks
Q(5)(a) Explain all three types of loops used in C. Give examples of each one and write sample programs
Q6) Explain with examples, any three of the following
1) Formal parameterss
2)Strings
3)Parameters passing by reference
4)Case Control structures
5)Formate specifier
this was rest of the paper.. btw Case Control structures are SWITCH, right?
and Logical operators in C are && (AND) || (OR) and ! (NOT)
please correct me if wrong, im now just confused about these 2 hehe .. others i did all fine
Absolutely right!
You could get a user ID for Salman also, then why salmansalman?
lol yar pata nahi.. I thought Salman is very common and someone must already be holding it, so i tried salmansalman :D
thanks anyways
:)