IT Questions and Answers :)

Monday, July 8, 2019

In Oracle, which of the following is a logical storage area?

In Oracle, which of the following is a logical storage area?

  • audit log
  • tablespace
  • schema
  • datafile 

 
In Oracle, which of the following is a logical storage area?

 EXPLANATION

Oracle stores data logically in tablespaces and physically in datafiles associated with the corresponding tablespace.

For more information, see: https://docs.oracle.com/cd/E11882_01/server.112/e40540/logical.htm#CNCPT301https://docs.oracle.com/cd/E11882_01/server.112/e40540/logical.htm#CNCPT301
Share:

Friday, July 5, 2019

What is the name of the dynamic memory management system used by KVM (Kernel-based Virtual Machine)?

What is the name of the dynamic memory management system used by KVM (Kernel-based Virtual Machine)?

  • Kernel-based Memory Deduplication
  • Kernel-based Memory Optimization
  • KVM Dynamic Page Consolidation
  • Kernel Samepage Merging 

What is the name of the dynamic memory management system used by KVM (Kernel-based Virtual Machine)?

EXPLANATION

KSM (Kernel Samepage Merging) runs in the Linux kernel and scans the memory of all the virtual machines running on a single host, looking for duplication and consolidating said duplicates when found.
KSM is able to improve virtual machine density by as much as 300% without impacting performance. One of the great benefits of using Linux as the hypervisor means KSM is not limited to KVM and virtual machines, but can also reduce memory pressure with normal Linux applications.

SOURCE

https://pve.proxmox.com/wiki/Dynamic_Memory_Management
Share:

Thursday, July 4, 2019

If you want to add a JavaScript to a webpage, you must put it inside which HTML element?

If you want to add a JavaScript to a webpage, you must put it inside which HTML element?

  • <js>
  • <script>
  • <jscript>
  • <javascript> 

EXPLANATION

Add a script tag to the HTML head. To do so, insert a <script language="javascript"> tag in the head. This tells the text editor that you'd like to use JavaScript language to write your HTML JavaScript "program." In this example, we will greet the user using an alert.

  • Add the script tag the HTML head of your own website to add JavaScript.
  • If you want the script to run automatically run when the site loads, don't include a function. If you want to call it, include a function.
<html>
<head>
<script language="javascript">
alert("Hi there, and welcome.")
</script>
</head>
<body>
</body>
</html>

 



Share:

How do you add a single-line comment in JavaScript?

How do you add a single-line comment in JavaScript?

  • 'This is a comment
  • <!--This is a comment-->
  • #This is a comment
  • //This is a comment 
 
How do you add a single-line comment in JavaScript?

 

EXPLANATION

Single Line Comments

Single line comments start with //.
Any text between // and the end of the line will be ignored by JavaScript (will not be executed).
This example uses a single-line comment before each code line:

Example

// Change heading: document.getElementById("myH").innerHTML = "My First Page";

// Change paragraph: document.getElementById("myP").innerHTML = "My first paragraph.";
 
Share:

What would you use if you need to know the IP address of an interface on a Linux system?

What would you use if you need to know the IP address of an interface on a Linux system?

  • ipconfig
  • Read it in /etc/conf file
  • show ip interface brief
  • ifconfig 

What would you use if you need to know the IP address of an interface on a Linux system?


EXPLANATION

Unix-like operating systems, ifconfig is used to configure, or view the configuration of, a network interface.

This document covers the GNU/Linux version of ifconfig.

Note

On modern Linux systems, the ip command has replaced ifconfig.

Description

ifconfig stands for "interface configuration." It is used to view and change the configuration of the network interfaces on your system.
Running the ifconfig command with no arguments, like this:
ifconfig
...displays information about all network interfaces currently in operation. The output will resemble the following:
eth0      Link encap:Ethernet  HWaddr 09:00:12:90:e3:e5  
          inet addr:192.168.1.29 Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe70:e3f5/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:54071 errors:1 dropped:0 overruns:0 frame:0
          TX packets:48515 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:22009423 (20.9 MiB)  TX bytes:25690847 (24.5 MiB)
          Interrupt:10 Base address:0xd020 
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:83 errors:0 dropped:0 overruns:0 frame:0
          TX packets:83 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:7766 (7.5 KiB)  TX bytes:7766 (7.5 KiB)
wlan0     Link encap:Ethernet  HWaddr 58:a2:c2:93:27:36  
          inet addr:192.168.1.64  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::6aa3:c4ff:fe93:4746/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:436968 errors:0 dropped:0 overruns:0 frame:0
          TX packets:364103 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:115886055 (110.5 MiB)  TX bytes:83286188 (79.4 MiB)
Here, eth0, lo and wlan0 are the names of the active network interfaces on the system.
  • eth0 is the first Ethernet interface. (Additional Ethernet interfaces would be named eth1, eth2, etc.) This type of interface is usually a NIC connected to the network by a category 5 cable.
  • lo is the loopback interface. This is a special network interface that the system uses to communicate with itself.
  • wlan0 is the name of the first wireless network interface on the system. Additional wireless interfaces would be named wlan1, wlan2, etc.
These are the traditional naming conventions for network interfaces under Linux; other operating systems may have different names. For instance, under many BSD operating systems, Ethernet interfaces are named em0, em1, etc. Check your configuration, or consult your documentation, to determine the exact names of your interfaces.

 

Share:

Popular Posts