Tag: programming languages

Questions Related to programming languages

2.What is the correct JavaScript syntax to write "Hello World"?

  1. response.write("Hello World")

  2. document.write("Hello World")

  3. ("Hello World")

  4. "Hello World"

Answer: 2

7.How does a "for" loop start?

  1. for (i = 0; i <= 5; i++)

  2. for i = 1 to 5

  3. for (i <= 5; i++)

  4. for (i = 0; i <= 5)

Answer: 1

Which SQL statement selects all rows from table called Contest, with column ContestDate having values greater or equal to May 25, 20006?

  1. SELECT * FROM Contest WHERE ContestDate < '05/25/2006'

  2. SELECT * FROM Contest HAVING ContestDate >= '05/25/2006'

  3. SELECT * FROM Contest WHERE ContestDate >= '05/25/2006'

  4. None of the above

Answer: 3

What is the INSERT command used for?

  1. To retrieve data.

  2. To insert data.

  3. To modify data.

  4. All the above

Answer: 2

Which SQL keyword is used to retrieve only unique values?

  1. UNIQUE

  2. DISTINCTIVE

  3. DIFFERENT

  4. DISTINCT

Answer: 4

The TRUNCATE TABLEā€¦?

  1. checks if the table has primary key specified

  2. deletes the table

  3. deletes all rows from a table

  4. None of the above

Answer: 3

Which of the following SQL clauses is used to sort a result set?

  1. ARRANGE

  2. ORDER BY

  3. SORT

  4. None Of The Above

Answer: 2

Java is a strongly-typed language

  1. True

  2. False

Answer: 1

Newly created threads take the priority of the threads that create them.

  1. True

  2. False

Answer: 1

A single source file can contain multiple class definitions, each having any access modifier.

  1. True

  2. False

Answer: 2