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

DBMS CHECKLIST

DBMS Types Data Independence Three schema architecture DBMS users Dr.E.F.Codd’s rules for RDBMS (0-12) ER Model SQL DDL – CREATE, ALTER, DROP, TRUNCATE, RENAME DML – INSERT, UPDATE, DELETE DCL – GRANT, REVOKE, CREATE USER, DROP USER TCL – COMMIT, ROLLBACK, SAVEPOINT DATATYPES, OPERATORS(ARITHMETIC,RELATIONAL) CONSTRAINTS (PRIMARY KEY, FOREIGN KEY, NOT NULL, UNIQUE, CHECK) WHERE CLAUSE ORDER BY ASC | DESC DISTINCT GROUP BY - HAVING FUNCTIONS 1.      SINGLE ROW FUNCTIONS(UPPER,LOWER,SUBSTR,INITCAP,LENGTH,TRIM,LTRIM,RTRIM) 2.      AGGREGATE FUNCTIONS(MIN,MAX,SUM,AVG,COUNT) 3.      NUMBER FUNCTIONS(ROUND,CEIL,FLOOR,ABS,MOD,SQRT,POWER) 4.      DATE FUNCTIONS(TO_DATE,ADD_MONTHS,TO_CHAR,NEXTDAY,MONTHS_BETWEEN, SYSDATE) 5.      NULL FUNCTIONS(NVL,NVL2,COALESCE) OPERATORS IN NOT IN BETWEEN AND IS NULL LIKE, NOT LIKE PATTERN MATCHING IS ...

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...

Look before you Leap...

Hey there, Lets talk about Information. Many a times we are not the first hand recipients of information. We receive information from someone or through the Internet or the media. Some of us are wise enough to ponder over the details received from any third or fourth party sources but most of us blindly believe in what comes around from Mr.XYZ and everyone around. A wise one would use his/her intellect and wisdom to ponder over that information and decide whether to trust and take it in or throw it out. That is what makes us different from animals. The power of thinking and intellect. To illustrate this, lets remind ourselves of this famous story of a fox. There was once a fox in a jungle. One day the fox accidentally slipped in to a deep well and was unable to get out of there. So it came up with an idea. As soon as it heard a sheep bleat, it started exclaiming very loud  "wow. This water is so tasty!".  Hearing this the sheep went close to the well and asked...