SR info

Friday, 10 October 2014

Latest Shopify Test Question & Answer


Which of the following is Not an automatic email notification a customer can receive?

    The product they have ordered is currently in backorder====Ans
    they create a customer account for your store
    their order is cancelled
    they forget their password to their customer account.



A grouping of products defined by simple rules set by shop owners is called a:

    Quick collection
    You cannot group products on Shopify
    Themed collection
    Smart collection=====Ans



Where does Shopify tracks your online store’s traffic, revenue, and growth trends

    Statistics Section
    Dashboard Section=======Ans
    Customer Section
    Sales Section



Which of these are NOT programming languages supported by the Shopify API?

    Ruby on Rails
    Node
    All are supported=====Ans
    .Net


True or False? You cannot hide specific pages of your storefront.

    True
    False===Ans



What is the purpose of tagging a data type such as a product or customer?

    To delete all tagged items within a specified time block eg 1 hour, 1 day, 1 week, from current time
    To help identify, describe, or search for some property of the object=========Ans
    To help give discount codes to a specific customer or product
    To restrict tagged users from purchasing certain products


Which of these is an example of a product variance?

    All of these
    Different sizes of clothing=====Ans
    The difference in price between your product and your competitor
    The country in which you are located




What is the Shopify Job Board primarily used for?

    Hiring someone to help with your shop======Ans
    Shopify does not have a job board
    Alerting shop owners to openings at brick and mortar stores
    Shopify posts jobs they are looking to fill



True or False? Tags are case sensitive.

    False
    True=====Ans


When setting up promotions for a Shopify webpage how many discount codes/coupons can a customer use at once

    No Limit
    One=====Ans
    Three
    Two


Which of these are NOT available pricing tiers for Shopify?

    Unlimited - $179 per month
    Basic - $29 per month
    All are available tiers=======Ans
    Professional - $59 per month


True of False? Tags only show on Collection and Product Pages as well as Blog Posts.

    False
    True=====Ans

When setting up a new order notification which of the following options are available?

    Email address: Send the order notification to your email address.
    All of these options=============Ans
    Mobile phone: Send an order notification to a mobile phone number.
    Staff member: Send the email notification to a staff member


Which of the following online platforms does Shopify often use for managing apps created with the API?

    Heroku======Ans
    ActiveState
    Vfabric
    Cloudify


How can you ensure a particular image of your products gets "featured?"

    You can change the settings on the product preferences page
    Simply put it at the front of the list=========Ans
    This is a special feature of only a handful of themes
    Shopify selects products to be featured monthly


True or False? You can use the Shopify iPhone app to close/reopen orders.

    False
    True======Ans


When creating a Webhook for an event, which of the following URL will work properly?

    www.mycoolwebsite.com======Ans
    www.mycoolwebsite.com/internal
    www.example.com
    localhost:3000



When should you use the "_thumb" suffix in your image file name for each image you upload to Shopify?

    Only with the default Liquid file
    When designing an app for Shopify
    When you want the image to be correctly formatted
    Never, this will cause unintended issues with your picture============Ans

f there is no badge to the left of a customer on your Orders screen in the iPhone app, the order is:

    Closed======Ans
    Cancelled
    Behind schedule
    Still open


Can I change my collection handle?

    Yes====Ans
    No


What is the name of the tool Shopify uses to prevent spam?

    Defensio======Ans
    reCAPTCHA
    CAPTCHA
    Shopify does not currently prevent spam


What file format can you export and import files in

    TSV
    CSV=====Ans
    TXT
    YML


True or False? You can create groups of customers to send email newsletters to.

    True====Ans
    False


How many product variants are you allowed for each product?

    10
    There is no limit to product variances you are allowed
    100=====Ans
    It depends on the product type


Which of the following criteria is not available for specifying shipping rates?

    Location Based===========Ans
    Carrier Calculated Rates
    Weight Based
    Price Based


Which operating system is required for Shopify?

    All are supported========Ans
    Linux
    Windows
    MacOS

A feature that fetches and displays data on a Shopify shop page from an outside location is known as what?

    API Fetcher
    Application Proxy=====Ans
    Shopify does not allow for outside data to be displayed on a shop page
    Data Streaming


True or false? Smart Collections can be formed on both products and customers.

    True
    False=====Ans


True of False? You can set the administrative interface to any language you wish.

    False========Ans
    True




What can you accomplish by changing your DNS CNAME?

    You will be able to to use your own domain name as the the web address for your shop=====Ans
    You will be able to allow your products to be shipped overseas
    It is not recommended to change the DNS CNAME as this will void your agreement with Shopify
    You will be able to track traffic analytics for your shop


By default a Shopify webpage comes with a blog?

    False
    True=====Ans


How frequently does Shopify charge its fee?

    Weekly
    Immediately at every sale
    Every quarter
    Every 30 days====Ans


What is a Merchant Account?

    Another title for your username
    A special account only available to premium users
    An account held directly at a bank used to accept credit card payments=====Ans
    A section of your store for regular customers



How do CSV files need to be encoded when uploading in bulk?

    ASCII
    Single-byte encoding
    Java compatible
    UTF-8====Ans

What do you mean by SKU?

    Stock Keeper Unit
    Stock Keeping Unit======Ans
    Standard Keeper Unit
    Standard Keeping Uni


Which of these is NOT a method of payment accepted by Shopify?

    Paypal
    Nochex
    Quickpay
    All are accepted=====Ans


Shopify only allows owners to alter the _____ in customizing their checkout page design.

    Javascript
    CSS=====Ans
    HTML



When customizing an email template, which programming language do you use?

    Javascript
    Ruby
    CSS
    HTML======Ans


The two parts of your store are called:

    Admin and Windowshop
    Storefront and Preferences
    Storefront and Admin======Ans
    storename and storefront


What are webhooks?

    A type of call to action you can place on your blog to attract more customers
    A tool for retrieving and storing data from a certain event with your shop======Ans
    A developer of Shopify themes
    A service Shopify uses to cut down on bot traffic


What is the name of Shopify's ecommerce template language?

    Liquid======Ans
    Sell-it
    HTML
    CSS




What is the purpose of a fulfillment service?

    a third party service to process your payments
    a in house Shopify team to help customize your Shopify page
    a third party warehouse that prepares and ships your orders for you.=======Ans
    a third party service that optimizes a Shopifys webpage SEO rating


How do you enter Google Analytics tracking code in Shopify?

    It is a standard feature included with Shopify========Ans
    You need to contact Shopify support to set up this feature
    Shopify does not recommend using Google Analytics with your store



A service that authorizes credit card payments and processes them securely with a user’s merchant account is called a:

    Locked down payments
    Payment gateway==========Ans
    Secure Money Transfer
    Merchant fund source



What is the difference between the {{ }} and {% %} Liquid markup?

    The first is used for design, the second is used for math
    The first is for output, the second is for tags=====Ans
    They are interchangeable
    The first is for products, the second is for checkout



Which programming language is used to edit a Shopify webpage theme?

    Javascript
    HTML5
    CSS3
    All of these choices are used.======Ans
    Liquid



How does Shopify calculate shipping rates?

    The rates come directly from USPS
    Rates are based on the weight class you set up======Ans
    Shipping is always free on Shopify
    Rates fluctuate rapidly based on current transportation costs


What is the purpose of the Bogus Gateway

    Setting up a joke shop for events like Halloween and April Fools
    Forming partnerships with similarly themed stores
    Testing, primarily testing transactions without being charged a commission=====Ans
    Brainstorming new tags


When canceling an order will unfulfilled products be automatically restocked?

    True====Ans
    False



How many link lists are given to every shop by default?

    Time's Up!
    Two: a checkout list and a blog list
    Two: A main menu and a footer====Ans
    None: You must create your lists yourself
    One: A main menu



Which of the following is a way to edit your theme offline?

    Use the Textmate bundle to edit your theme inside TextMate (or E-editor on the PC) as a workaround====Ans
    Download your Liquid files and use a Java editor
    Contact Shopify to get offline editing enabled
    Export the theme as a .rby format



What is Shopify's easy-to-use in house programming language called

    Water
    Rails
    Codify
    Liquid=======Ans

Monday, 26 May 2014

Simple code Twilio Calling and message

<?php
// Install the Twillio API or download the .zip file to your project folder.
// This line loads the library 

 require('Services/Twilio.php');
// This is a file with my Account Sid and AuthToken

$sid = "xxxxxxxxxxxxxxxxxxxxxxxxxxxx"; // Your Account SID from www.twilio.com/user/account
$token = "xxxxxxxxxxxxxxxxxxxxxxxxx"; // Your Auth Token from www.twilio.com/user/account

$client = new Services_Twilio($sid, $token);

if (isset($_POST['callnow']))
{
extract($_POST);
 

$call = $client->account->calls->create(
  'xxxxxxx', // From a valid Twilio number
  "$mobile", // Call this number

  // Read TwiML at this URL when a call connects (hold music)
  'http://twimlets.com/holdmusic?Bucket=com.twilio.music.ambient');
echo "dailing...."; 
  }

if (isset($_POST['Message']))
{
extract($_POST);
$message = $client->account->messages->sendMessage(

  'xxxxxxx', // From a valid Twilio number
  "$mobile", // Call this number
  "Hello!"
);
print $message->sid;
}
?>
<table border="2" cellspacing="2" cellpadding="2">

<form action="" method="post">
<tr><td>
<input type="text" name="mobile" value="">
<input type="submit" name="callnow" value="call now"></td></tr>
<tr><td align="center">
<input type="submit" name="Message" value="Message now">
</td></tr>
</form></table>

Tuesday, 13 May 2014

Latest Wordpress Questions answers odesk

What is the output of the following code?

<ul id="sortable">
    <li id="1">example 1</li>
    <li id="2">example 2</li>
    <li id="3">example 3</li>
    <li id="4">example 4</li>
</ul>

$(document).ready(function(){
    $('#sortable').sortable({
        update: function(event, ui) {
            var newOrder = $(this).sortable('toArray').toString();
            $.get('saveSortable.php', {order:newOrder});
        }
    });
});

Removes positions from data base based on the user input
Saves sortable positions to data base based on the user input==ans
Adding new sortable positions from another data base
Sorting out existing positions without updating the data base with the new user inputs

//////////////


display it on another?

switch_blog()
switch_to_blog()==ans
restore_current_blog()
restore_to_current_blog()




How can the upload media panel be included in a Wordpress template/plugin?

By using function wp_enqueue_script('media-upload')
By using function wp_add_media( );
By using function wp_enqueue_script('upload');==ans
By using function wp_add_script('media-upload');



Which of the following is a quick way to move a Wordpress website from one server to another?

Using migration plugin
Copying wordpress files and database from source to destination server==ans
Using XML export through wp-admin interface
Install new wordpress and copy theme and plugin directory


Which of the following functions can be used to create a WordPress page?

wp_insert_post()==ans
wp_insert_page()
wp_create_post()
wp_create_page()




How can a user be found through its meta data?

User can not be retrieved through its meta data
get_user_by_metadata($metaid,$metavalue)
get_user($args)
get_users($args)==ans


Which of the following commands can change the ownership of WordPress directory to www-data (for Apache)?

sudo chown -Rf www-data *
chown -Rf www-data *
sudo crown -Df www-data * ==ans
Alldo chown -Rf www-data *


User Level 7 converts to _________?

Contributor
Author
Editor==ans
Subscriber
Administrator


How can a post ID be retrieved from the permalink?

Its not possible to retrieve the post ID from a permalink due to its structure.
It can be retrieved by using a Regular Expression.
wp_get_post_id($permalink)
url_to_postid($permalink)


Which of the following will hash a string/password to its md5 equivalent?

md5()
wp_generate_password()===ans
wp_generate_md5()
password_md5()




What is the BEST way to get last inserted row ID from Wordpress database ?


 Use the following code snippet

$lastid->$wpdb=$last->get_row;

The call to mysql_insert_id() inside a transaction should be added:

mysql_query('BEGIN');
// Whatever code that does the insert here.
$id = mysql_insert_id();    ==ans
mysql_query('COMMIT');
// Stuff with $id.

The following code snippet should be added

$last = $wpdb->get_row("SHOW TABLE STATUS LIKE 'table_name'");
        $lastid = $last->Auto_increment;

Straight after the $wpdb->insert() insert, the following code should be added:

      $lastid = $wpdb->insert_id;
     
     
     
     
     
      Which of the following is the correct sequence of steps to adapt a WordPress plugin to a multisite?

a) ==ans
1. Use $wpdb to iterate through all blogs
2. Hook according to the $blog_id
3. Install the plugin as Network only
4. Uninstall depends the specific plugin

1. Use $wp_posts to iterate through all blogs
2. Hook according to the $function
3. IInstall the plugin as Network only
4. Uninstall depends the specific plugin

1. Use $wp_posts to iterate through all blogs
2. Hook according to the $function
3. Install other activations except Network
4. Uninstall is the same for all the plugins

1. Use $wp_posts to iterate through all blogs
2. Hook according to the $function
3. Install the plugin as Network only
4. Uninstall is same for all the plugins




Which of the following will correctly load localized (translated) text for a WordPress plugin?

function custom_theme_setup() {
    $lang_dir = get_template_directory() . '/lang');
    load_theme_textdomain('tutsplus', $lang_dir);
}
add_action('after_setup_theme', 'custom_theme_setup');
function custom_theme_setup() {
    $lang_dir = get_template_directory() . '/lang');
    add_action('after_setup_theme', 'custom_theme_setup');
}
function custom_theme_setup() {
    $lang_dir = get_template_directory() . '/lang');
    add_action('after_setup_theme', 'custom_theme_setup');
   }
 load_theme_textdomain('tutsplus', $lang_dir);
function load_theme_textdomain('tutsplus', $lang_dir); {
    $lang_dir = get_template_directory() . '/lang');
     custom_theme_setup();
}
add_action('after_setup_theme', 'custom_theme_setup');




Which of the following is the correct way to assign a category to a Wordpress post?

wp_set_post_categories($postId,$categories)==ans
wp_set_category($catId,$postId)
By XML-RPC call to wpc.newPost
This is not possible




Which of the following will show the most recent post (by date) from a custom taxonomy?

a) ans
select * from wp_posts where ID in(
select ID from
(
select wp_posts.ID , wp_posts.post_date, d.name from wp_posts as a
join wp_term_relationships as b on ( a.ID = b.object_id)
join wp_term_taxonomy as c on (b.term_taxonomy_id = c.term_taxonomy_id)
join  wp_terms as d on (c.term_id = d.term_id)
where c.taxonomy = 'post-series'
group by d.name
having (wp_posts.post_date = max(wp_posts.post_date))
)tmp)
select * from wp_posts where ID in(
select ID from
(
select wp_posts.ID , wp_posts.post_date, d.name from wp_posts as a
join  wp_terms as d on (c.term_id = d.term_id)
where c.taxonomy = 'post-series'
group by d.name
having (wp_posts.post_date = max(wp_posts.post_date))
)tmp)
select * from wp_posts where ID in(
select ID from
(
select wp_posts.ID , wp_posts.post_date, d.name from wp_posts as a
join wp_term_relationships as b on ( a.ID = b.object_id)
join wp_term_taxonomy as c on (b.term_taxonomy_id = c.term_taxonomy_id)
join  wp_terms as d on (c.term_id = d.term_id)
having (wp_posts.post_date = max(wp_posts.post_date))
)tmp)
select * from wp_posts where ID in(
select ID from
(
select wp_posts.ID , wp_posts.post_date, d.name from wp_posts as a
join wp_term_relationships as b on ( a.ID = b.object_id)
join  wp_terms as d on (c.term_id = d.term_id)
where c.taxonomy = 'post-series'
group by d.name
having (wp_posts.post_date = max(wp_posts.post_date))
)tmp)




How can a custom content filter be added?

By using add_action('the_content','my_custom_filter')==ans
By using add_filter('the_content','my_custom_filter')
By using wp_filter('the_content','my_custom_filter')
By using add_action('content','my_custom_filter')




You can limit the number of revisions WordPress stores by _____

<b>Note:</b> Categories must have distinct slugs. Even if two categories have different parents and would therefore have different permalinks, you can't assign them the same slug.


Note: There may be more than one right answer.
adding the following line to your wp-config.php file: define('WP_POST_REVISIONS', 3);
using a plugin
changing a setting on admin panel





Which of the following code snippets can be used to create custom POST status in wordpress 3.0 +?

register_new_post()
register_post_status()==ans
add_new_post_status()
modify_post_status()





Which of the following will correctly add custom mod rewrite rules to .htaccess from a WordPress plugin?

$custom_mod_rewrite = new custom_mod_rewrite;
register_activation_hook( __FILE__, array($custom_mod_rewrite, 'flush_rewrite_rules'));
register_deactivation_hook( __FILE__, array($custom_mod_rewrite, 'flush_rewrite_rules'));
add_action('generate_rewrite_rules', array($custom_mod_rewrite, "generate_rewrite_rules"));


class custom_mod_rewrite {
    function __construct() {
        $this->wp_rewrite = & $POST["wp_rewrite"];
    }}
$custom_mod_rewrite = new custom_mod_rewrite;
register_activation_hook( __FILE__, array($custom_mod_rewrite, 'flush_rewrite_rules'));
register_deactivation_hook( __FILE__, array($custom_mod_rewrite, 'flush_rewrite_rules'));
add_action('generate_rewrite_rules', array($custom_mod_rewrite, "generate_rewrite_rules"));


class custom_mod_rewrite {
    function __construct() {
        $this->wp_rewrite = & $GLOBALS["wp_rewrite"];
    }
}
$custom_mod_rewrite = new custom_mod_rewrite;
register_activation_hook( __FILE__, array($custom_mod_rewrite, 'flush_rewrite_rules'));
register_deactivation_hook( __FILE__, array($custom_mod_rewrite, 'flush_rewrite_rules'));
add_action('generate_rewrite_rules', array($custom_mod_rewrite, "generate_rewrite_rules"));




class custom_mod_rewrite {
    function __construct() {
        $this->wp_rewrite = & $GLOBALS["wp_rewrite"];
    }
    function mod_rewrite_rules($rules) {
        return preg_replace('#^(RewriteRule \^.*/)\?\$plugin_name .*(http://.*) \[QSA,L\]#mi', '$1 $2 [R=301,L]', $rules);
    }
}
$custom_mod_rewrite = new custom_mod_rewrite;
register_activation_hook( __FILE__, array($custom_mod_rewrite, 'flush_rewrite_rules'));
register_deactivation_hook( __FILE__, array($custom_mod_rewrite, 'flush_rewrite_rules'));
add_action('generate_rewrite_rules', array($custom_mod_rewrite, "generate_rewrite_rules"));


class custom_mod_rewrite {
    function __construct() {
        $this->wp_rewrite = & $SESSION["wp_rewrite"];
    }
}





Which of the following is the correct way to get WordPress Post ID from the Post title?

$page = get_page_title( 'About' );
wp_pages( 'exclude=' . $page->ID );

$page = get_page_by_title( 'Home' );
$page_id = $page->ID;

$page = get_page_by_title( 'About' );==ans
wp_pages( 'exclude=' . $page->ID );

None of the above


Which of the following methods can be used to make permalinks SEO friendly?

Updating the database.
Changing the source code.
Configuring the feature in the config file.
Configuring the feature in the admin settings.==ans




Image size limits can be set _______________.

directly in the posts
in the wp-imageresize plug-in
in the admin settings==ans
both directly in the posts and in the wp-imageresize plug-in





What is the first action you need to take for enabling the WordPress multisite (MS) feature?

Enable the WordPress multisite feature on admin panel
Enable the Network feature
Add this code to wp-config.php file: define( 'WP_ALLOW_MULTISITE', true );==ans




Which of the following codes will return the current plugin directory in WordPress?

 <?php plugin_basename($file); ?>/=ans
 <?php plugin_basename('url'); ?>
 <?php bloginfo_plugin('url'); ?>
 <?php content_plugin_url( $path ); ?>





Are categories and tags available for pages?

<b>Note:</b> Categories must have distinct slugs. Even if two categories have different parents and would therefore have different permalinks, you can't assign them the same slug.

Yes
No==ans




Which of the following will give the option to add inline Ajax for comment posting?

Enabling Ajax in the wp-config.php file
Activating Ajax from the admin settings of WordPress
Using the Ajax Comment Posting plugin=ans
Wordpress doesn't support inline Ajax.

Sunday, 2 February 2014

most used but we dont know........Like google full form.......

Abbreviation of major IT companies.......Abbreviation of major IT companies.......!!!

GOOGLE :- Global Organisation Of Oriented Group Language of Earth

APPLE:- Asian Passenger Payload Experiment

HP :- Hewlett-Packard

IBM:- International Business Machines Corporation

HCL:-Hindustan Computer Limited

WIPRO:- Western India Product Limited

GE:-General Electronics

INFOSYS:-Information System

TCS:- Tata Consultancy Services

AOL:- American Online

BPL:- British Process Laboratory

INTEL:- Integrated Electronics

CISCO:- Computer Information System Company

DELL:- michael DELL

SONY:-Sound Of New York

AMD:- Advance micro devices


LENOVO:- LE(Legend),NOVO(New)

COMPAQ:- Compatibility And Quality

Keyboard Shorcuts

Keyboard Shorcuts (Microsoft Windows)

1. CTRL+C (Copy)

2. CTRL+X (Cut)

3. CTRL+V (Paste)

4. CTRL+Z (Undo)

5. DELETE (Delete)

6. SHIFT+DELETE (Delete the selected item permanently

     without placing the item in the Recycle Bin)

7. CTRL while dragging an item (Copy the selected item)

8. CTRL+SHIFT while dragging an item (Create a shortcut
    to the selected item)
9. F2 key (Rename the selected item)
10. CTRL+RIGHT ARROW (Move the insertion point to the
     beginning of the next word)
11. CTRL+LEFT ARROW (Move the insertion point to the
     beginning of the previous word)
12. CTRL+DOWN ARROW (Move the insertion point to the
     beginning of the next paragraph)
13. CTRL+UP ARROW (Move the insertion point to the
     beginning of the previous paragraph)
14. CTRL+SHIFT with any of the arrow keys (Highlight a
      block of text)
      SHIFT with any of the arrow keys (Select more than one
     item in a window or on the desktop, or select text in a
     document)
15. CTRL+A (Select all)
16. F3 key (Search for a file or a folder)
17. ALT+ENTER (View the properties for the selected item)
18. ALT+F4 (Close the active item, or quit the active
     program)
19. ALT+ENTER (Display the properties of the selected
     object)
20. ALT+SPACEBAR (Open the shortcut menu for the active
      window)
21. CTRL+F4 (Close the active document in programs that
      enable you to have multiple documents

      opensimultaneously)
22.ALT+TAB (Switch between the open items)
23. ALT+ESC (Cycle through items in the order that they
     had been opened)
24. F6 key (Cycle through the screen elements in a window
     or on the desktop)
25. F4 key (Display the Address bar list in My Computer or
     Windows Explorer)
26. SHIFT+F10 (Display the shortcut menu for the selected
   item)
27. ALT+SPACEBAR (Display the System menu for the
      active window)
28. CTRL+ESC (Display the Start menu)
29. ALT+Underlined letter in a menu name (Display the
     corresponding menu) Underlined letter in a command name
     on an open menu (Perform the corresponding command)
30. F10 key (Activate the menu bar in the active program)
31. RIGHT ARROW (Open the next menu to the right, or
     open a submenu)
32. LEFT ARROW (Open the next menu to the left, or close
      a submenu)
33. F5 key (Update the active window)
34. BACKSPACE (View the folder onelevel up in My
      Computer or Windows Explorer)
35. ESC (Cancel the current task)
36. SHIFT when you insert a CD-ROMinto the CD-ROM
     drive (Prevent the CD-ROM from automatically playing)
    Dialog Box - Keyboard Shortcuts
37. CTRL+TAB (Move forward through the tabs)
38. CTRL+SHIFT+TAB (Move backward through the tabs)
39. TAB (Move forward through the options)
40. SHIFT+TAB (Move backward through the options)
41. ALT+Underlined letter (Perform the corresponding
     command or select the corresponding option)
43. ENTER (Perform the command for the active option or
      button)
44. SPACEBAR (Select or clear the check box if the active
     option is a check box)
45. Arrow keys (Select a button if the active option is a
     group of option buttons)
46. F1 key (Display Help)
47. F4 key (Display the items in the active list)
48. BACKSPACE (Open a folder one level up if a folder is
     selected in the Save As or Open dialog box)
49. CTRL+SHIFT+W====exit window

50.CTRL+W========= close tab