Posts

Showing posts from August, 2020

Using for loop c programmes

Great! Practicing for loops in C is an excellent way to strengthen your understanding of programming logic and structure. Here are 10 C programming exercises using for loops for practice, from beginner to intermediate level: --- ✅ 1. Print Numbers from 1 to N Goal: Input n and print numbers from 1 to n. int n; printf("Enter a number: "); scanf("%d", &n); for (int i = 1; i <= n; i++) {     printf("%d ", i); } --- ✅ 2. Sum of First N Natural Numbers Goal: Input n, output sum 1 + 2 + ... + n. int n, sum = 0; printf("Enter a number: "); scanf("%d", &n); for (int i = 1; i <= n; i++) {     sum += i; } printf("Sum = %d\n", sum); --- ✅ 3. Factorial of a Number Goal: Input n, calculate n!. int n, fact = 1; printf("Enter a number: "); scanf("%d", &n); for (int i = 1; i <= n; i++) {     fact *= i; } printf("Factorial = %d\n", fact); --- ✅ 4. Multiplication Table Goal: Input n, print tabl...

Computer teacher recruitment 2020:: Very important all rounder mock test with practice

Computer related:: 1. IBM introduced the first 8” floppy disk in 1971 which could store a. 100 KB b. 164 KB c. 512 KB d. 1.44 MB 2. The storage capacity of a floppy disk is measured in a. KB b. MB c. GB d. TB 3. The storage capacity of a hard disk is measured in a. KB b. MB c. GB d. TB 4. What is the suitable output device for CAE, CAD and CAM? a. Dot Matrix Printers b. Laser Printers c. Plotters d. Projectors 5. Which of the following printer produces most noise? a. Dot Matrix Printer b. Inkjet Printer c. Laser Printer d. None of above 6. To record and produce sound in a computer system you need a. Microphone b. Speakers c. Sound card d. All of above 7. A cluster of red, green and blue diodes is driven together to form a full-color pixel in a a. LCD Monitor b. LED Monitor c. CRT Monitor d. Monochrome Monitor 8. The temporary output of a computer system is called a. Hardcopy output b. Softcopy output c. Computer Printout d. None of above HTML:: 6.The BODY tag is usually used a...