Tags » Interview Questions

Why AC voltage cannot be stored in batteries?

We cannot store AC in battery because it changes its polarity 50 times per second (for India). But the terminals of the batteries have fixed polarities and it is practically impossible for a battery to change its polarity or the terminals 50 times a second.

Electrical Quantities

Why transformers are rated in kVA not in kW?

Transformer has both Core loss and Cu loss (I2R). Core loss depends on the Input voltage of the transformer whereas Cu loss depends upon the current flowing through the Transformer winding. 36 more words

Interview Questions

Can we increase the size of an array dynamically ? If yes, how ?

Description: 

Java Arrays class provides one of the utility method Arrays.copyOf() which helps us to create new array with new size and copy old arrays content to the new array at the same time. 83 more words
Interview Questions

Wordpress Practical Interview questions - fronted

<?php

//=====================================================================
//	Display posts list
//=====================================================================

$args = array( 
			'post_type' => 'post', 
		);
$query = new WP_Query( $args );
while ( $query->have_posts() ) : $query->the_post();	
endwhile;

//=====================================================================
//	Display posts meta
//=====================================================================

echo get_post_meta(get_the_ID(),'meta_key',true); 

//=====================================================================
//	Display sidebar
//=====================================================================

if ( is_active_sidebar( 'sidebar-1' )  ) :
	dynamic_sidebar('sidebar-1');
endif;	

//=====================================================================
//	WordPress Loop
//=====================================================================

if ( have_posts() ) : // check post is avalable or not,if yes then will go for next step
while ( have_posts() ) : // if you had configured your WordPress reading settings to display five posts on the home page then while loop five times and then stop. 479 more words
Wordpress

Wordpress Practical Interview questions - backend

<?php

//=====================================================================
//	Register custom post type
//=====================================================================

add_action('init','custom_posttype_function_name');
function custom_posttype_function_name(){
	$labels = array(
		'name' => _x( 'Realestates', 'post type general name', 'your-plugin-textdomain' ),
	);
	$args = array(
		'labels' => $labels,
		'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'comments' )
	);
	register_post_type( 'custom_posttype_name', $args );
}

//=====================================================================
//	Register taxonomy for custom post type
//=====================================================================

// Note : hierarchical 'true' for category
// Note : hierarchical 'false' for tag

$labels = array(
				'name' => _x( 'Location', 'taxonomy general name', 'textdomain' ),
		   );
$args = array(
			'hierarchical' => true,
			'labels'=> $labels,
		);
register_taxonomy( 'taxonomy_name', 'custom_posttype_name', $args );

//=====================================================================
//	Create meta box
//=====================================================================

add_action( 'add_meta_boxes', 'meta_box_realestate' );
function meta_box_realestate() {
	add_meta_box( 'meta_box_realestate_id', 'Enter Realestate Info', 'realestate_meta_boxes_info', 'realestate', 'normal', 'high' );
}

function realestate_meta_boxes_info( $post ) {
	$values = get_post_custom( $post->ID );
	$realestate_owner = isset( $values['realestate_owner'] ) ? 802 more words
Wordpress

What is log shipping ?

What is log shipping?

  • Log shipping is one of the high availability technique in SQL Server.

                              Log shipping is the process of automating the backup of a database and transaction… 25 more words

SQL DBA