NgeBlog

Quiz test masuk ke Yahoo Asia

September 13, 2007 · 6 Comments

Eh.. ini hanya sekedar share aja.. siapa tau ada teman-teman yang ditawari kerja sama Yahoo Asia base-nya Singapore. Tapi ini terjadi 1 tahun yang lalu, waktu itu saya sempat mengajukan lamaran ke Yahoo Asia untuk posisi Software Engineer, ternyata ada respon. Tapi sayang setelah lolos di ujian tertulis… interviewnya gak lolos kekekeke… mungkin kurang menyan??

Mungkin aja ada teman-teman yang lagi dapat tawaran dari sana. Apalagi kalau soalnya masih sama kan bisa dipelajari dulu. Quiz-nya meliputi C, SQL/Oracle, Web/CGI, Perl, Unix System Admin.

C:

Q1. What is the significance of a const variable?

Q2. A structure has an integer, a pointer and a char, how big is it?

Q3. Given an array of strings (i.e char *strings[10]) write C code to sort the list in increasing order of string length. Run time efficiency is a primary concern.

SQL/Oracle:

Q1. If you have 2 tables, one small and one huge, which would you make the driving table and why?

Q2. How do you do a dirty read in Oracle?

Web/CGI:

Q1. I want to provide a personalised web page, which presents different data to different users – what URL/CGI techniques can I use to identify each user? What are the advantages and disadvantages of each method?

Perl:

Consider the following perl program:

#! /usr/local/bin/perl5.003 -w

{

my($string) = “brad<hello>3hello”;

$string =~ /^[^\d]{2,4}<([^>]+)>\d?\1$/;

if( defined($1) ) {

print “$1\n”;

} else {

print “not found\n”;

}

}

Q1. Explain what the regular expression is trying to match?

Q2. If you were writing a perl program as a prototype for a program you would like to eventually write in C (not C++), would this alter how you write the Perl prototype? In what ways? What features of Perl would you use to ease the process?

Q3. What does ‘my’ do? Is it the same as ‘local’?

Q4. Given a string $text containing multiple lines of text, how do you strip all the html tags?

Unix System Admin:

Q1. Detail what Unix tools you are experienced with and why you like them?

Selamat belajar!

Categories: Celoteh

6 responses so far ↓

Leave a Comment