zoukankan      html  css  js  c++  java
  • 字节面试

    一面:

    1.手撕代码

      字符串的浅拷贝,深拷贝

       a='iiioooo'     b='88888sfssa'  将a替换为b

    2.n 以内的正整数 ,输出偶数,奇数,质数,

    3.http  https   区别

    4.缓存,缓存击穿,缓存风暴

    5.数据库索引有那些,索引的利弊

    6.测试用例设计,测试抖音推荐功能测试用例

    7.linux 命令,vi ,   cat,   tail -n ,   sc,   sz,   tar -zxvf ,   tar   -zcvf ,

                       netstat -tulnp |grep   端口

    8. python  unittest  

        跳过测试用例   @unittest.skip(reason):强制跳转。reason是跳转原因 @unittest.skipIf(condition, reason):condition为True的时候跳转 ...

        用例初始化   setup   teardown

    9.断言   assertEqual、assertIn、assertTrue

    1.assertEqual(self, first, second, msg=None)

    --判断两个参数相等:first == second

    2.assertNotEqual(self, first, second, msg=None)

    --判断两个参数不相等:first != second

    3.assertIn(self, member, container, msg=None)

    --判断是字符串是否包含:member in container

    4.assertNotIn(self, member, container, msg=None)

    --判断是字符串是否不包含:member not in container

    5.assertTrue(self, expr, msg=None)

    --判断是否为真:expr is True

    6.assertFalse(self, expr, msg=None)

    --判断是否为假:expr is False

    7.assertIsNone(self, obj, msg=None)

    --判断是否为None:obj is None

    8.assertIsNotNone(self, obj, msg=None)
    --判断是否不为None:obj is not None

    二面、

      1.网络传输,io 7层次协议

       2.手撕代码 

        输出数字图形

        1

        23

        456

        78910

        ....n

     3.Linux 命令  

       批量替换字符    sed  -i  "s/查找字符/替换字符g"  'grep    " 查找字符串"  -l  '

    4. 不知道文件的路径,这么找到这个文件

        where  'XXXXX'

     5.python  unittest   类初始化

        setupClass   teardwonClass    

    6.python   匿名函数     lambda   x , y : x+y

    7.索引   索引有哪些   缩影利弊

    三面:

        细问项目,项目中出现的问题  ,怎么解决的,引发的思考,

       测试团队的管理      

           

       

  • 相关阅读:
    [Evolution in aciton] C#1.1=>2.0=>3.0 [Querying Collections]
    动态操作.Config文件
    设计模式代理模式(Proxy Model)
    Linq Coding Part Five (Join之内部联接查询)
    Linq Coding Part Four[Concat应用]
    [转]领域模型管理与AOP
    08端午节,休闲一下吧,来上游戏
    有关于ViewState的二种压缩方式
    AddOutParameter引发类型问题
    Linq Coding Part Two[标准查询运算符]
  • 原文地址:https://www.cnblogs.com/tsgxj/p/14503970.html
Copyright © 2011-2022 走看看