Doubtly
@Doubtly · Joined Feb 2021
- Answers
- 3,792
- Questions
- 4,963
- Upvotes received
- 429
- A satellite revolves around a planet in a circular orbit. What is the work done by the satellite at any instant? The work done is zero because the centripetal force on the body at any instant is directed towards the centre of the circular path and the d... 1
- Define a kilowatt hour. How is it related to joule? One kilowatt hour is the electrical energy consumed by an electrical appliance of power 1 kilowatt when it is used for 1 hour. 1 kilowatt ho... 1
- Write the relationship between the S.I. and C.G.S. unit of moment of force. The S.I. and C.G.S. unit of moment of force are related as follows — 1 N m = 10 ⁵ dyne x 10 ² cm = 10 ⁷ dyne cm 1
- Define moment of force. The moment of force is equal to the product of the magnitude of the force and the perpendicular distance of the line of action of force from... 1
- write C program to print Hello World #include <stdio.h> int main(){ printf("Hello World"); return 0; } Program Output Hello World 1
- Can two or more operators such as \n and \t be combined in a single line of program code? Yes, it’s perfectly valid to combine operators, especially if the need arises. For example: you can have a code like ” printf (“Hellonn\’Wor... 1
- Can I use “int” data type to store the value 32768? Why? No. “int” data type is capable of storing values from -32768 to 32767. To store 32768, you can use “long int” instead. You can also use “uns... 2
- How do you access the values within an array? Arrays contain a number of elements, depending on the size you gave it during variable declaration. Each element is assigned a number from 0... 1
- What are variables and it what way is it different from constants? Variables and constants may at first look similar in a sense that both are identifiers made up of one character or more characters (letters,... 1
- What is syntax error? Syntax errors are associated with mistakes in the use of a programming language. It maybe a command that was misspelled or a command that mu... 1
- What are header files and what are its uses in C programming? Header files are also known as library files. They contain two essential things: the definitions and prototypes of functions being used in a... 1
- Can the curly brackets { } be used to enclose a single line of code? While curly brackets are mainly used to group several lines of codes, it will still work without error if you used it for a single line. Som... 1
- How do you declare a variable that will hold string values? The char keyword can only hold 1 character value at a time. By creating an array of characters, you can store string values in it. Example:... 1
- Compare and contrast compilers from interpreters. Compilers and interpreters often deal with how program codes are executed. Interpreters execute program codes one line at a time, while comp... 1
- Which of the following operators is incorrect and why? ( >=, <=, <>, ==) <> is incorrect. While this operator is correctly interpreted as “not equal to” in writing conditional statements, it is not the proper oper... 1
- 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