All questions
- What is nested loop? A nested loop is a loop within a loop, an inner loop within the body of an outer one. 2
- Define Program program is a set of instructions that a computer uses to perform a specific function 2
- Give syntax of simple nested if – else statement? if(condition) { //Nested if else inside the body of "if" if(condition2) { //Statements inside the body of nested "if" } else { //Statements... 1
- Give syntax of simple if – else statement if(condition) { // Statements inside body of if } else { //Statements inside body of else } 1
- Give syntax of simple if statement if (condition) instruction; 2
- What do you mean by console IO functions These functions allow us to receive input from the input devices like keyboard and provide output to the output devices like the Visual Disp... 1
- What is Disk IO Function? Disk I/O includes read or write or input/output operations (defined in KB/s) involving a physical disk 2
- What is the use of getch() function? getch() is a way to get a user inputted character. It can be used to hold program execution 1
- What is the use of getchar() function? getchar is a function in C programming language that reads a single character from the standard input stream stdin, regardless of what it is... 1
- Which are formatted input output functions? printf() and scanf() are examples for formatted input and output functions. 1
- Which are unformatted input output functions? getch(), getche(), getchar(), gets(), puts(), putchar() etc. are examples of unformatted input output functions. 1
- Which are Bitwise Operators? Bitwise operators are used in C programming to perform bit-level operations. EXample: & | ^ << >> 1
- Which are logical Operators? An expression containing logical operator returns either 0 or 1 depending upon whether expression results true or false. Logical operators a... 1
- Which are relational operator? A relational operator checks the relationship between two operands. If the relation is true, it returns 1; if the relation is false, it retu... 1
- Give the general syntax of conditional operator? The conditional (ternary) operator is the only JavaScript operator that takes three operands: a condition followed by a question mark ( ? ),... 2
- What are major disadvantages of machine code? It is machine dependent i.e. it differs from computer to computer. It is difficult to program and write. It is prone to errors ,It is diffic... 1
- What is purpose of language processor? A language processor is a software program designed or used to perform tasks such as processing program code to machine code. 1
- What is language processor? Language processor may refer to: Natural language processor, a computer programmed to process human (natural) languages. Programming languag... 1
- Whether the program in c can be executed by computer directly? Answer: No. A C program (source code) cannot be executed by the computer directly; it must first be compiled into machine code. The computer... 1
- Describe the appearance of machine code? Answer: machine code looks like long strings of binary digits, 0s and 1s, for example 10110000 01100001. Machine code (machine language) is... 1
- How does a programmer finds coding errors? Test the program on simple cases for which the result of the program is known. Break down the program into a sequence of basic steps and ind... 1
- How long is a byte ? Answer: a byte is 8 bits long. A bit (binary digit) is the smallest unit of data, a single 0 or 1. A group of 8 bits makes one byte, for exa... 1
- How long is word? 4 bytes . 1
- What is global variable? The variables that are declared outside the given function are known as global variables. 2