logo

Crowdly

Coding Café

Looking for Coding Café test answers and solutions? Browse our comprehensive collection of verified answers for Coding Café at dle.plaksha.edu.in.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

At which line number is there a function invocation (function call) of a user-defined function?

View this question

How many times would the do...while loop (lines 6-9) run when the program is run successfully?

0%
0%
0%
0%
View this question
In class, we discussed several ways of writing an improved version of the program for CGPA calculation. Mention any one way that would greatly minimise any data input inconsistencies from the user end, and would make the program generic enough to calculate the CGPA of any university.
View this question

The user-defined function used by the program takes a float number as an argument and returns nothing.

View this question

The program uses two function declarations, and no definitions.

View this question
As you know, control goes into the while loop, if the expression evaluates to be true. Any non-zero value maps to a true in C. Given these, which of the following options is equivalent to the statement:

while (numb != 0) { }

0%
0%
0%
0%
0%
View this question

Execute the program executable by typing /home/sharing/cc/4-1 at the command prompt. Write a program to print such a pattern, which is generalisable for any number of lines. 

View this question

Write a program that initialises an array of 5 integers and stores values in them using a for loop. 

  • Modify the program from the question above to now ask the user to enter N integers using the keyboard and store them in a one-dimensional array of type integers. Also, print the square of each array element using a for loop. You can take the value of N from the user ensuring that 0 < N <= 100. 

View this question

Write a function called isFound() that takes a list of N integers as input from the user (N is also user input), and an integer X to search for in the list. After storing the list in an array, the program counts and prints the frequency of occurrence of X in the list. 

View this question

From the previous lab exercise, extract the code to check if a given number is prime or not and organise it into a function called isPrime(). 

View this question

Want instant access to all verified answers on dle.plaksha.edu.in?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!