Posts

Showing posts from July, 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...

ICT WRITTEN EXAM 2020:: TODAYS TOPIC:: HTML

//WRITE A HTML PROGRAM TO DISPLAY YOUR WEB BROWSER "HELLO WORLD" AND LINKING WITH ANOTHER WEB PAGE WELCOME TO MY WEBSITE// SOLUTION 1 <HTML> <HEAD><h1>MY</h1> </HEAD> <BODY> <A href="my2.html">HELLO WORLD </a> </BODY> </HTML> SOLUTION 2 <html> <body> welcome to my website </body> </html> M.C.Q (1) HTML is stand for [A] Hyper Text Markup Language [B] Holistic Technical Method Library [C] Hyper Tax Makes Line [D] None of the above Answer: Option [A] (2) HTML is a subset of [A] SGMD [B] SGML [C] SGMH [D] None of the above Answer: Option [B] (3) ALL HTML tags are enclosed in what ? [A] # and # [B] ? and ! [C] < and > [D] { and } Answer: Option [C] (4) To create HTML page, you need [A] Web browser [B] text editor [C] Both [A] and [B] [D] None of the ...

Mathematics:: Topic- Boat and stream

6. A girl was travelling in a boat, suddenly wind starts blowing and blows her hat and started floating back downstream. The boat continued to travel upstream for 12 more minutes before she realized that her hat had fallen off. She turned back downstream and she caught her hat as soon as she reached the starting point. If her hat flew off exactly 2km from where she started. What is the speed of the water? A) 12km/hr B) 8km/hr C) 5km/hr D) 9km/hr E) 10km/hr View Answer Option C Solution: Distance = 2 km Time = 2 * 12 (doubles ) = 24 mins. = 2/5 hr. Speed = 2 / (2/5) = 5 km/hr. 7. A ship sails 30km of a river towards upstream in 6 hours. How long will it take to cover the same distance downstream. If the speed of the current is (1/4)rd of the speed of the boat in still water. A) 2 hrs B) 4.5hrs C) 5 hrs D) 3.6hrs E) 5.5 hrs View Answer Option D Solution: Let x be speed of the boat and y be the speed of the current. Downstream speed = x...

ICT WRITTEN EXAM:: TODAYS TOPIC::= MODERN MATH NUMBER SERIES

Directions (Q. 1 - 12): What value should come at the place of question mark in the following number series? 1) 11, 19, 65, 259, 1161, ? a) 3081 b) 6021 c) 4421 d) 5041 Answers: 1) Answer: b) 11 x 1 + 2³ = 19 19 x 2 + 3³ = 65 65 x 3 + 4³ = 259 259 x 4 + 5³ = 1161 1161 x 5 + 6³ = 6021 2) 8, 50, 295, ? , 5881, 17641 a) 1251 b) 1471 c) 1081 d) 1391 e) None of these 2) Answer: b) 8 x 7 – 6 = 50 50 x 6 – 5 = 295 295 x 5 – 4 = 1471 1471x4—3= 5881 5881x3—2= 17641 3) 10, 15, 35, 82.5, ? , 562.5 a) 215 b) 210 c) 205 d) 220 e) None of these 3) Answer: c) 10 x 0.5 + 10 = 15 15 x 1 + 20 = 35 35 x 1.5 + 30 = 82.5 82.5 x 2 + 40 = 205 205 x 2.5 + 50 = 562.5 4) 1000, 501, 170, 47.5, ? a) 14.5 b) 15 c) 16 d) 16.5 e) None of these 4) Answer: d) 1000 ÷ 2 + 1 = 501 501 ÷ 3 + 3 = 170 170 ÷ 4 + 5 = 47.5 47.5 ÷ 5 + 7 = 16.5 5) 10, 11, 19, 46, ?, 235 a) 200 b) 110 c) 105 d) 64 e) None of these 5) Answer: b) 10 + 1³ = 11 11 + 2³ = 19 19 + 3³ = 46 46 + 4³ = 110 ...

English Grammar Basic Questions MCQ

Voice Change 1. Those mills grind corn.    a)Corn is ground by those mills.    b)Corn is ground by mills.    c)Corn is grounded by those mills.    d)Corn is ground by these mills. Answer: a)  Explanation: Corn is ground by those mills. 2. The students were listening to the teacher.    a)The teacher was listened to by the students.    b)The teacher is listened to by the students.    c)The teacher was listening to by the students.    d)The teacher was listened to students. Answer: a) Explanation: The teacher was listened to by the students. 3. They will demolish the entire block. (a) The entire block is being demolished. (b) The block may be demolished entirely. (c) The entire block will have to be demolished by the (d) The entire block will be demolished. Ans : d) 4.This surface feels smooth. (a) This surface is felt smooth...

Basic General Knowledge M.C.Q

1. Who is the first non-indian to receive the  Bharat Ratna?  A. Martin Luther King  B. Mother Terasa  C. Khan Abdul Ghaffar Khan  D. Aubin Mehta  Ans. Khan Abdul Ghaffar Khan  2. When did Mother Teresa win the Nobel  Peace Prize?  A. 1975  B. 1979  C. 1981  D. 1982 Ans. B. 1979 3. Which one of the following glasses is used in  bullet proof screens?  A. Soda glass  B. Pyrex glasss  C. Jena glass  D. Reinforced glass Ans. D. Reinforced glass 4. Which substance is used to retard the  setting action of cement?  A. CaO  B. AlO  C. CaSO4,2H2O  D. NaO + KO  Ans. C. CaSO4,2H2O  5. The mineral in which India depends largely  on imports is  A. Iron Ore  B. Bauxite  C. Mica  D. Mercury Ans. D. Mercury 6. The last Mughal Emperor was A. Akbar  B...

Computer Storage Device Basic Questions

Q.1 In optical media group which is the latest addition from the following?   A: CD-RW DVD-RW B: Blu-Ray Disk   C: DVD-RAM D: DVD-ROM Answer:: DVD-RAM Q.2 Which have the largest memory storing capacity from optical media group? A: DVD-RW B: DVD-ROM C: Blu-Ray   D: DVD-RAM Answer:: Blu-Ray Q.3 Which of the following disks can be record only once? A: CD-R and DVD-R B: CD-RW and DVD-RW C: Blu-Ray Disk   D: CD-RAM and DVD-RAM Answer:: CD-R and DVD-R Q.4 In the computer the term “Backing” means –   A: Starting the computer B: Splitting a large file C: Copy files and data into other storage D: Protect computer from virus Answer:: Copy files and data into other storage Q.5 Which method of access is used where access speed is vital?   A: Serial access B: Direct access C: Indirect access   D: Search access   Answer:: Direct access Q.6 Which is a very thin strip of plastic co...

COMPUTER ICT SYLLABUS

1. Generations of Computer (I-V)   2. Block Diagram of a Computer 3. Functions of the Different Units Input unit, Output unit, Memory unit, CPU (ALU+CU) 4. Input & Output Devices Input Devices:   a)Keyboard,   b) Point and draw devices mouse, joystick, track ball, light pen c) Data Scanning devices image scanner, OCR, OMR, MICR, Bar code reader, card reader d) Voice Recognition Device e) Digitizers Output Devices:   a) Monitor   b) Printer laser printer, dot-matrix printer, ink jet printer c) Projector Memories [Memory hierarchy] 5. Registers [Types of Registers] 6. Cache Memory 7. Primary Memory   i) RAM    a) How data is stored in a RAM b) DRAM and SRAM ii) ROM a) ROM BIOS/ Firmware b) Types of ROM 8. Secondary Memories i) Hard disk     a) Structure of a hard disk, how data is stored in a hard disk, concept of tracks, sectors, clusters, cylinders          ...

Part-2 :: INPUT & OUTPUT DEVICE Related MCQ

Q.1 Which device use infrared signal to operate or control other device remotely? A: Remote control   B: Sensor   C: Mouse   D: Touchpad Answer::   Remote control   Q.2 Default pointing device of a laptop is – A: Optical mouse   B: Sensitive screen C: Touchpad D: Tablet pc   Answer:: Touchpad Q.3 Which is an example of pointing device? A: Mouse   B: Pointer C: Cursor   D: HDMI port   Answer:: Mouse Q.4 Which among the following is the most common device that accepts letters, numbers and command from a user?   A: Optical Mouse   B: Sensitive Screen or touch screen   C: Keyboard D: USB Answer:: Keyboard   Q.5 What type of keyboard is used in fast food restaurants, offices and shops? A: Numeric keypads B: Numeric Keyboard   C: Concept keyboard D: Concise keyboard Answer:: Concept keyboard Q.6 What type of keyboard is...