Search This Blog

Friday, April 4, 2025

functions and pointers Program 1

 What will happen when you run this program?




   a) Compile time error: mismatch of data type of function argument in line 7
   b) Prints garbage
   c) Prints 11 and 21
   d) Prints 11 and 22

Type your answer in a comment.



printf and scanf functions

 In which of the following header files printf and scanf functions are included?

a) inout.h

b) stdlib.h

c) stdio.h

d) io.h


Provide your answer in a comment.

Thursday, April 3, 2025

Can you guess which of these is a keyword of C Programming Language?

 Which of the following is a keyword of C Programming language?

a) printf

b) scanf

c) sizeof

d) getstr


Type the answer in a comment

Wednesday, April 2, 2025

Datatype int in C

 What is the size of an int (integer) in the C language?

a) 1 byte

b) 2 bytes

c) 4 bytes

d) depending on OS


Thursday, March 1, 2018

Programming: Who started?


Do you know who was the first programmer?

a) Eckert J
b) William Gibson
c) Ada lovelace
d) Mauchly J

Ans: Ada Lovelace, daughter of famous poet Lord Byron is considered asa first programmer. She wrote an algorithm to be executed on Charles Babbage’s computer.  The first computer program was related to to calculation of Bernoulli’s numbers. It is said that this program remain on paper only. Charles Babbage gave her another name “The Enchantress of Numbers”.




Wednesday, February 28, 2018

Random memory : The First Computer


Many years back when I studied Computer programming,  I was taught  that ENIAC (Electronic Numeric Integrator And Calculator) is the first digital computer. It was created by Eckert J P and Mauchly J. It took around 3 years. The purpose was to help in World War II against German forces. It was a huge machine.  It used about 20000 vacuum tubes,  70000 resistors, 10000 capacitors and 1500 relays.  It occupied about 1800 square feet.  It used huge amount of electricity about 200 kilo watts. It weighed about 30 tons. How much did it cost? Just about $4,87000 J It is 72 years old now. It was retired in a very young age and enjoys its retired life in Smithsonian Institution.
Later I found that ENIAC has elder siblings.  Some names to mention are:

  • Z1 (it has German citizenship), and it is almost ten years elder to ENIAC.
  • Colossus (British citizenship) was used for code breaking.
  • ABC (Atnasoff-Berry Computer) is of American origin.

ENIAC certainly has younger sibling and is ancestor of all computers we are using today and will use in future.

Monday, January 2, 2017

Asset-Centric Engineering

Asset Centric Engineering can be applied to
a)      Unified Process Development Methodology
b)      Scrum Methodology
c)       Extreme Programming Methodology
d)      Waterfall Methodology
e)      None of the above
f)       All of the above