Doubtly
@Doubtly · Joined Feb 2021
- Answers
- 3,792
- Questions
- 7,778
- Upvotes received
- 432
- What is a nested loop? A nested loop is a loop that runs within another loop. Put it in another sense, you have an inner loop that is inside an outer loop. In this... 1
- What is the modulus operator? The modulus operator outputs the remainder of a division. It makes use of the percentage (%) symbol. For example: 10 % 3 = 1, meaning when y... 1
- What is the difference between the = symbol and == symbol? The = symbol is often used in mathematical operations. It is used to assign a value to a given variable. On the other hand, the == symbol, a... 1
- What is the use of a ‘\0’ character? It is referred to as a terminating null character, and is used primarily to show the end of a string value. 1
- In C programming, how do you insert quote characters (‘ and “) into the output screen? This is a common problem for beginners because quotes are normally part of a printf statement. To insert the quote character as part of the... 1
- Differentiate Source Codes from Object Codes Source codes are codes that were written by the programmer. It is made up of the commands and other English-like keywords that are supposed... 1
- What is spaghetti programming? Spaghetti programming refers to codes that tend to get tangled and overlapped throughout the program. This unstructured approach to coding i... 1
- What is variable initialization and why is it important? This refers to the process wherein a variable is assigned an initial value before it is used in the program. Without initialization, a varia... 1
- What is a sequential access file? When writing programs that will store and retrieve data in a file, it is possible to designate that file into different forms. A sequential... 1
- What is a stack? c programming A stack is one form of a data structure. Data is stored in stacks using the FILO (First In Last Out) approach. At any particular instance, o... 1
- What is the equivalent code of the following statement in WHILE LOOP format? a=1; while (a<=100) printf ("%dn", a * a); a++; 2
- Some coders debug their programs by placing comment symbols on some codes instead of deleting it. Placing comment symbols /* */ around a code, also referred to as “commenting out”, is a way of isolating some codes that you think maybe cau... 1
- What is the difference between Call by Value and Call by Reference? When using Call by Value, you are sending the value of a variable as parameter to a function, whereas Call by Reference sends the address of... 1
- How do you construct an increment statement or decrement statement in C? There are actually two ways you can do this. One is to use the increment operator ++ and decrement operator –. For example, the statement “x... 1
- Seg AM is a median of ∆ABC. If AB = 22, AC = 34, BC = 24, find AM. ∴ AM = 26 units 1
- Find the length of a diagonal of a rectangle having sides 11 cm and 60 cm. Answer: 61 cm A diagonal divides the rectangle into two right-angled triangles, with the sides of the rectangle as the legs and the diagonal... 1
- Do sides 7 cm, 24 cm, 25 cm form a right angled triangle? Give reason. The sides of the triangle are 7 cm, 24 cm and 25 cm. The longest side of the triangle is 25 cm. ∴ (25)² = 625 Now, sum of the squares of the... 1
- Find the height of an equilateral triangle having side 2a. Let ∆ABC be the given equilateral triangle. ∴ ∠B = 60° [Angle of an equilateral triangle] Let AD ⊥BC, B – D – C. In ∆ABD, ∠B = 60°, ∠ADB = 9... 1