Docsity

S1-IV-Question-Pool Documentation, Exercises of English

Partial preview of the text

Download S1-IV-Question-Pool Documentation and more Exercises English in PDF only on Docsity!

S1-IV-Question-Pool Documentation

Release 0.1.

Section-I

Sep 25, 2017

ii

S1-IV-Question-Pool Documentation, Release 0.1.

Contents:

Contents 1

CHAPTER 1

How to contribute

I - Setup Sphinx

Install Sphinx, which is a tool that makes it easy to create intelligent and beautiful documentation, written by Georg Brandl and licensed under the BSD license.

$> pip install sphinx

Note: Better use with virtualenv, if u not familar with please read this Guide.

II - Make a new sphinx-project

  1. Create a dir for project, e.g.: /home/your-user/s1-iv-pool
  2. Then cd into it, and execute sphinx-quickstart
  3. Use all the default choice except follow 4 (a) > Separate source and build directories (y/N) [n]: - select ‘y’ here (a) > Project name: - give ‘S1-IV-Question-Pool’ here (a) > Author name(s): - give ‘S1’ here (a) > Project version: - give ‘0.1.0’ here

S1-IV-Question-Pool Documentation, Release 0.1.

  1. If all ok, u should get follow . |-- build |-- make.bat |-- Makefile -- source |-- conf.py |-- index.rst |-- _static-- _templates
  2. remove the source dir

III - Clone the source repo

  1. git clone [email protected]:yaniwang/interview-questions.git /home/ your-user/s1-iv-pool/source
  2. You should get follow structure . |-- build | |-- doctrees | -- html |-- make.bat |-- Makefile-- source |-- clang_qsn.rst |-- clang_sln.rst |-- conf.py |-- .git |-- index.rst |-- linux_usage_qsn.rst |-- linux_usage_sln.rst |-- prologue.rst |-- python_qsn.rst |-- python_sln.rst |-- README.rst |-- shell_qsn.rst |-- shell_sln.rst |-- _static `-- _templates
  3. Do all the edit, modify, new, remove work just in source.
  4. When finishing edit, cd back to project root, execute make html, then you can review the compiled html version in build/html/
  5. cd to source dir, git push to server. The public compiled version will be hosted in http://10.66.10.22:8090/ it will be automatically updated per each push

Warning: If u have trouble during git clone process, please contact [email protected]

4 Chapter 1. How to contribute

S1-IV-Question-Pool Documentation, Release 0.1.

6 Chapter 1. How to contribute

CHAPTER 2

The Prologue

Objective Here

  • We are not here trying to make elixir
  • This project intend to gather everyone’s wisdom about What question will you ask as an interviewer
  • Make what we asked more relevant and useful Quote from shwang@ mail Recently, interviewed some candidates with yaning and wshi. It is really a hard problem for us to evaluate the candidate in 1 hours. We’d better to make full preparations. How about collecting the useful questions and setting up section interview question bank? It will be helpful for us to improve our interview quality. And make our interviews more efficient. We have at least 9 topics, such as:
  • Work experience
  • Test skills
  • English
  • Virtualization
  • Linux usage
  • Linux theory
  • Python
  • Shell
  • C, Java Let’s contribute some questions, grade its degree, write down the answers(or check points) and update some questions quarterly or when we have new ideas. Then improve it with our using experience. It is useful, right?

CHAPTER 3

C Language Questions

Difficulty Level Easy What is the function of ‘GIT PUSH’ in GIT?

Difficulty Level Medium

Write a program to reverse print user input single char and multiplying them in recursion style. e.g.: Input: a\n b\n c\n

Output: c

9

S1-IV-Question-Pool Documentation, Release 0.1.

bb aaa

10 Chapter 3. C Language Questions

S1-IV-Question-Pool Documentation, Release 0.1.

02

#include <stdio.h>

int temp () { int j = 0; int count; char c; printf("Enter a char \n "); do { c = getchar(); } while (c=='\n'); if (c == 'x') return 0; count = temp(); for (j=0;j <count+1;j++) putchar(c); printf(" \n "); return count+1; }

int print_in_reverse() { int count = 0; count = temp(); printf("%d \n " , count); }

int main( int argc, char const (^) *argv[]) { print_in_reverse(); return 0; }

12 Chapter 4. C Language Solutions

CHAPTER 5

Linux Usage Questions

Difficulty Level Medium

What Linux distribution have you used?

  • How did you installed it?
  • How did you do work on it?
  • How did you customize it to satisfy yourself?

Difficulty Level Easy

How to install software on it? Try to describe the whole process base on your understandings as deep as possible.

S1-IV-Question-Pool Documentation, Release 0.1.

07

Difficulty Level Medium or Hard

Could you try to explain what happens behind the scenes after type “sina.com.cn” in browser client?

S1-IV-Question-Pool Documentation, Release 0.1.

16 Chapter 5. Linux Usage Questions