zoukankan      html  css  js  c++  java
  • 多测师肖老师___分享杭州面试题

     

    <2>程序题(10’*3)(四选三)

    1. 写出以下脚本的alert结果。

    <script type='text/javascript'>        

    User = function() {

        this.name = "Damingsoft"

        this.speak = function () {

            return "Nice to meet you!"

        }

    }

    UserA = function() {

      this.speak = function() {

        return "Welcome!"

      }

    }

    UserA.prototype = new User();

    myUser = new UserA();

    alert('The User named ' + myUser.name +

          ' says ' + myUser.speak());

          </script>

     结果:

     'The User named '   Damingsoft  
          ' says '  Welcome!

    1. 输出以下程序的结果。

        char str[] = "world"; cout << sizeof(str) << ": ";

    char *p = str; cout << sizeof(p) << ": ";

    char i = 10; cout << sizeof(i) << ": ";

    void *pp = malloc(10); cout << sizeof(p) << endl;

     答案:

    6:4:1:4

    1. 输出以下程序的结果。

    def fun1(n):
        for index in range(0, n):
            print(sum(range(0,n)))

    fun1(10)

     结果:

    45
    45
    45
    45
    45
    45
    45
    45
    45
    45

     

     

    <4> 数据库(10*2)

     

    1. 参考如下tabletblDynamicWebTWAIN

    请写出把第三条记录的strImageName 修改 test.jpg的sql 语句

    (1)update tblDynamicWebTWAIN set strlmageName=test.jpg where ilmagelID=3

     (2)Select  strUserName  from   tblUser a , tblCheckout b , tblItem  c  from a.iUserID =b.iUserID and  b.biltemID=C.biltemID and  strlTNME=App.config

    1. 参考如下三张表格:

    TabletblUser

    TabletblCheckout

    TabletblItem

    写出查询App.config 对应checkout username 的sql 语句

    Select a.biltemID from tblItem a where strlTNME=App.config

  • 相关阅读:
    iOS7 自己定义动画跳转
    Android开发之用双缓冲技术绘图
    postgres 使用存储过程批量插入数据
    渗透过程
    python pytesseract使用
    排序算法比较
    python算法
    python中PIL模块
    数字电路复习
    windows服务参考
  • 原文地址:https://www.cnblogs.com/xiaolehua/p/15713920.html
Copyright © 2011-2022 走看看