Tag: programming languages

Questions Related to programming languages

SEARCH can be applied to a table which does not have an INDEX defined.

  1. True

  2. False


Correct Option: B

Which is responsible for dot net framework language interoperability

  1. JIT

  2. Language Specific Compiler

  3. MSIL

  4. CTS


Correct Option: C

The above code compiles in __ language?

  1. JAVA

  2. C#

  3. works in java but not in C#

  4. works in C# but not in JAVA

  5. works in both languages


Correct Option: C
  1. inner join and intersect are same

  2. left join and union are same

  3. inner join when used with distinct can simulate intersect

  4. inner join and union are same


Correct Option: C
  1. delete from table_name where rowid not in (select max(rowid) from table group by duplicate_values_field_name);

  2. delete from table_name where rowid in (select max(rowid) from table group by duplicate_values_field_name);

  3. c)delete from table_name where rowid not in (select max(rowid) from table);

  4. delete from table_name where rowid not in (select rowid from table group by duplicate_values_field_name);


Correct Option: A

Which statement selects the odd number of records :

  1. select * from emp where (rowid,1) in (select rowid, mod(rownum,2) from emp);

  2. select * from emp where (rowid,0) in (select rowid, mod(rownum,2) from emp);

  3. select * from emp where (rowid,1) in (select rowid, mod(rownum,1) from emp);

  4. select * from emp where (rowid,1) in (select rowid, mod(rownum,3) from emp);


Correct Option: A
  1. Change line 1 to read "SELECT DISTINCT bus_name, profits "

  2. Change line 3 to read "where city IN ("

  3. Change line 5 to read "where max (city) LIKE 'NOID%' "

  4. Change line 7 to read "order by city , profits desc "


Correct Option: B