programming languages Online Quiz - 80

Description: programming languages Online Quiz - 80
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0

You specified segment space management as automatic for a tablespace what effect would this have on space management?

  1. Extents would be managed by freelists.

  2. Free space would be managed by data dictionary

  3. The segment would be managed by bitmaps.

  4. The segment would be managed by freelists.

Correct Option: C

A user wants to connect to the database instance from an application that is running on a remote machine. Which tool should the DBA use to establish the required configuration to ensure that the user is able to connect to the database instance? (Choose two).

  1. Oracle Net Manager.

  2. Data Pump.

  3. Oracle Universal Installer (OUI).

  4. Oracle Enterprise Manager.

  5. Database Configuration Assistant (DBCA).

Correct Option: D

Your database is having two control files; three redo log file groups with two members in each group. Failure of which file would cause a instance to shut down?

  1. Loss of the initialization parameter file.

  2. One of the redo log members.

  3. Any data file belonging to the default permanent tablespace

  4. Any archive log file.

  5. Any control file.

Correct Option: E

Which statements are true regarding the logical structure of database? (Choose three)

  1. It is possible to have tablespaces of different block sizes in a database.

  2. A data block is the smallest unit of I/O for data files.

  3. Multiple tablespaces can share single data file.

  4. Each data block in the database always corresponds to one OS block

  5. Each segment contains one or more extents.

Correct Option: A,B,E

Which three statements are true about the stages of database startup?

  1. Data files and redo log files can be renamed at the MOUNT stage

  2. Control files are required to bring the database to the NOMOUNT stage.

  3. Data files and online redo log files are checked for consistency while opening the database

  4. Data files and redo log files are made available to users at the OPEN stage.

Correct Option: A,C,D

What will be the value of $size after executing the following code?my @a = (0, 1, 2);$#a = 0;my $size = @a;

  1. undef

  2. 0

  3. 1

  4. 2

Correct Option: C

What elements will the @a array consist of? $_ = ' a b c '; my @a = split();

  1. ', 'a', ' ', 'b', ' ', 'c', ' '

  2. ', 'a', 'b', 'c', ''

  3. undef, 'a', 'b', 'c', undef

  4. 'a', 'b', 'c'

Correct Option: D

package A; sub NEW { bless {}, shift } sub AUTOLOAD { print ref(shift) } package main; my $obj = NEW A; $obj->foo();

  1. A

  2. AA

  3. Can't locate object method "foo" via package "A"

  4. none of the above

Correct Option: B
  1. sort @a

  2. sort {$1 <=> $2} @a

  3. sort {$a <=> $b} @a

  4. sort {$[0] <=> $[1]} @a

Correct Option: C

All three ways of calling new() are equivalent in the code below package A; sub new { my ($class, $param) = @_; return bless {param => $param}, $class; } package main; my $a1 = A->new('foo'); my $a2 = new A('foo'); my $a3 = A::new('A', 'foo');

  1. True

  2. False

Correct Option: B
  1. interface

  2. class

  3. Object

  4. None of these

Correct Option: A
  1. set

  2. ConcurrentSkipListSet

  3. Hashmap

  4. Queue

Correct Option: B
  1. java.io

  2. java.util

  3. javax.xml.stream

  4. java.io.*

Correct Option: B
  1. Handle with try catch block

  2. Handle with Throwable class

  3. Both of above true

  4. None of above

Correct Option: D
- Hide questions