Tag: programming languages

Questions Related to programming languages

Multiple choice technology programming languages
  1. FileStream fp= new FileStream("c:\test.txt", FileMode.Create, FileAccess.Write,FileShare.Read);

  2. FileStream fp= new FileStream("c:\test.txt", "rws");

  3. FileStream fp= new FileStream("c:\test.txt", FileMode.ReadWriteShared);

  4. FileStream fp= new FileStream("c:\test.txt", FileMode.ReadWrite, FileAccess.Shared);

Reveal answer Fill a bubble to check yourself
A Correct answer
Multiple choice technology programming languages
  1. namespace in C# refers to a holder where name collisions can be avoided whereas in C++ it is used to define templates

  2. namespace in C# and C++ are for same purpose

  3. namespace in C# refers to a holder where name collisions can be avoided whereas in C++ it is used to define STL classes

  4. namespace in C# refers to a holder where name collisions can be avoided whereas in C++ it is undefined.

Reveal answer Fill a bubble to check yourself
B Correct answer
Multiple choice technology programming languages
  1. It can be used to join a maximum of three tables

  2. It can be used to restrict the number of columns used in a NATURAL join

  3. It can be used to access data from tables through equijoins as well as nonequijoins

  4. It can be used to join tables that have columns with the same name and compatible data types

Reveal answer Fill a bubble to check yourself
B,D Correct answer
Multiple choice technology programming languages
  1. The numbers generated by a sequence can be used only for one table

  2. DELETE <sequencename> would remove a sequence from the database

  3. CURRVAL is used to refer to the last sequence number that has been generated

  4. When the MAXVALUE limit for a sequence for reached, you can increase the MAXVALUE limit by using the ALTER SEQUENCE statement

Reveal answer Fill a bubble to check yourself
C,D Correct answer
Multiple choice technology programming languages
  1. They can contain a subquery within a subquery.

  2. They can return multiple columns as well as rows.

  3. They cannot contain a subquery within a subquery.

  4. They can return only one column but multiple rows.

  5. They can contain group functions and GROUP BY and HAVING clauses.

  6. They can contain group functions and the GROUP BY clause, but not the HAVING clause.

Reveal answer Fill a bubble to check yourself
A,B,E Correct answer