Skip to main content

Test your knowledge - 2

1. What is the datatype of the following:

  a. "False"
   b. null

2. 0 is false, 1 is true. Right?

3. When will a parent kill the child?

Comments

  1. Solution:

    1 a. String (because it is in double quotes. If there were no double quotes it would be boolean)
    b. It's a reference type. Not a data type. It refers to the type of data it is referring to.

    2. 1 (Right = true = 1)

    3. When a thread completes execution or a higher priority process comes in to existence and kills the thread.

    ReplyDelete
  2. 1. a
    2. Right
    3. whenever a thread completes its execution

    ReplyDelete

Post a Comment

Popular posts from this blog

Types of programming languages | Software

Hi, Lets get going further in to the basics of computers. For those of you who are new to this blog, I recommend you to go through part - 1 of the basics before going ahead with this post. Here is the link to part-1: https://techspireme.blogspot.in/2018/04/basics-of-computers.html We have already read from part 1 that Software is a set of applications. Software is basically of two types: 1. System software: software required to start up the system i.e the Operating System software (by booting - a process named Boot Strap Loader loads the operating system from the Hard disk drive to the working memory RAM) 2. Application software: Software designed for a specific purpose that is a collection of programs. Application software always runs on the top of system software. Examples of Application software are: word processors like notepad, wordpad A suite of applications like MS Office Media players (VLC etc) and many more. System software is the base on which applicat...

Types of Computers

Based on the size, computing power and capabilities, the computers are divided in to several types. Let us have a look at these ranking from top to low. 1. Super Computer The fastest and extremely fast computer capable of execution hundreds of millions of instructions per second (MIPS) is called a Super computer. They are highly expensive (around 50-100 million dollars to a few billion dollars) and most powerful.  It can execute n* 10 power 10 to n* 10 power 50 operations per second ex. the NASA super computer Pleiades can execute 5.95 to 7.25 petaflops per second.  1petaflop = one thousand million million = 10 power 15 floating-point operations per second - FLOPS) The super computers are used in research purposes and in intense calculations like weather forecast, Earth quake studies, nuclear reactors & simulations, Astro physics, complex scientific operations etc. NASA uses super computers to launch satellites, rockets and for space exploration. Ti...

Everything about computers

Hi, I am quite excited to start the technical part of my blog! I hope so are you! Let's start with the Abc of computers that we all find a bit hard to put in to words. These are my own definitions made really simple and easy to understand! Computer:   An electronic device that computes, stores, processes , manipulates and displays the data. Coined from the term "compute", means to calculate. Facts:  First ever computer was used for mathematical calculations. Founder: Charles Babbage - The Father of computers - invented the first ever mechanical computer called "Babbage's Analytical Engine"! Features of a Computer / Advantages of computer over a calculator: Speed, Accuracy, Storage, Multi tasking, Diligence (and many more). A computer comprises of Software and Hardware (all the physical - internal or external components/peripherals that are connected to or a part of computer ex. Keyboard, Mouse, Cabinet, Joystick, USB - pen drive etc. that we c...