mst-rj_qrs.html 11 KB
<!DOCTYPE html>
<html  lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7, IE=9">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>长沙华恒机器人系统有限公司</title>
    <meta name="keywords" content="长沙华恒机器人系统有限公司,华恒机器人,智能物流,机器人焊接"/>
    <meta name="description" content="长沙华恒致力于智能物流、工业机器人、自动化焊接设备的研发和销售,为客户提供优质的智能物流系统与焊接自动化工程一体化解决方案"/>
    <meta name="author" content="长沙华恒机器人系统有限公司"/>
    <link href="favicon.ico" rel="shortcut icon">
    <link rel="stylesheet" th:href="@{/answer/css/bootstrap.css}" type="text/css">
    <link th:href="@{/answer/css/font-awesome.min.css}" rel="stylesheet" />
    <link rel="stylesheet" href="https://at.alicdn.com/t/font_1805932_ysrcp4y0uy9.css">
    <link rel="stylesheet"  th:href="@{/answer/css/uploadImg.css}">
    <link rel="stylesheet"  th:href="@{/answer/css/ms_style.css}"  type="text/css">
    <script th:inline="javascript"> var ctx = [[@{/}]]; </script>
    <style type="text/css">
        .form-control {
            font-size: 16px;
        }
        .form-center .username input,.form-center .password input{
            height: 50px;
            padding-left: 60px;
        }
        .form-control-feedback {
            line-height: 50px;
            left: 20px;
        }
        @media (max-width: 414px){
            .form-control {
                font-size: 16px;
                padding: 6px 12px 6px 50px;
            }
        }
    </style>
</head>
<body id="ddd">

<div class="container cont">
    <div class="mst">
        <div class="mst_title">
            <div class="st_title">软件测试题(嵌入式)</div>
            <p style="text-align: center"><span>总分:100</span>  <span style="padding-left: 20px">闭卷:120分钟</span></p>
            <div class="row">
                <input type="hidden" id="answerId">
                <div class="col-md-3 col-md-offset-3"><span style="color:red">*</span>姓名:<input id="userName" type="text" maxlength="30" class="tm_input" placeholder="必填项" readonly></div>
                <div class="col-md-3"><span style="color:red">*</span>
                    电话:<input id="userPhone" th:value="${phone}" type="text" maxlength="20" class="tm_input" placeholder="必填项" readonly>
                    <!--<p style="font-size:14px;color: red;">格式错误</p>-->
                </div>
            </div>
        </div>
        <div class="mst-dt">
            <h3 class="tm_title2">1、关键字STATIC的作用是什么?</h3>
            <div style="padding:0 30px;">
                  <textarea rows="6" name="answer" class="form-control2" placeholder="这里写答案..." style="height: 120px"></textarea>
            </div>
            <h3 class="tm_title2" style="padding-top: 10px">2h头文件中ifndef/define/endif的作用?</h3>
            <div style="padding:0 30px;">
                <textarea rows="6" name="answer" class="form-control2" placeholder="这里写答案..." style="height: 120px"></textarea>
            </div>
            <h3 class="tm_title2" style="padding-top: 10px">3、嵌入式系统中经常用到死循环,你怎样用C编写死循环?</h3>
            <div style="padding:0 30px;">
                <textarea rows="6" name="answer" class="form-control2" placeholder="这里写答案..." style="height: 120px"></textarea>
            </div>
            <h3 class="tm_title2" style="padding-top: 10px">4、给定变量 int a,写两段代码,第一个清除a的第7位,第二个设置a的第8位,保持其他位不变</h3>
            <div style="padding:0 30px;">
                <textarea rows="6" name="answer" class="form-control2" placeholder="这里写答案..." style="height: 120px"></textarea>
            </div>
            <h3 class="tm_title2" style="padding-top: 10px">5、下面的代码输出什么?</h3>
            <div style="padding:0 30px;"> 
                <pre>
Void foo(void)
{
    Unsigned int a = 6;
    Int b = -20;
    (a+b>6)?puts(a>6) : puts(a<6);
}
                </pre>
            </div>
            <div style="padding:0 30px;">
                <textarea rows="6" name="answer" class="form-control2" placeholder="这里写答案..." style="height: 120px"></textarea>
            </div>
            <h3 class="tm_title2" style="padding-top: 10px">6、请写出下面代码的输出内容:</h3>
            <div style="padding:0 30px;"> 
                <pre>
int Main()
{
    Int a,b,c,d;
    a = 10;
    b = a++;
    c = ++a;
    d = 10*a++;
    Printf(“b,c,d:%d,%d,%d,b,c,d);
    Return 0;
}
                    
                    
Int main()
{
    Int a[5]={1,2,3,4,5};
    Int *ptr = (int *)(&a+1);
    Printf(%d,%d,*(a+1),*(ptr-1));
}
                </pre>
            </div>
            <div style="padding:0 30px;">
                <textarea rows="6" name="answer" class="form-control2" placeholder="这里写答案..." style="height: 120px"></textarea>
            </div>
            <h3 class="tm_title2" style="padding-top: 10px">7、嵌入式系统中,ROM,RAM,REGISTER的概念和作用是什么?</h3>
            <div style="padding:0 30px;">
                <textarea rows="6" name="answer" class="form-control2" placeholder="这里写答案..." style="height: 120px"></textarea>
            </div>
            <h3 class="tm_title2" style="padding-top: 10px">8STM32的芯片,初始化哪些东西才能跑起来?</h3>
            <div style="padding:0 30px;">
                <textarea rows="6" name="answer" class="form-control2" placeholder="这里写答案..." style="height: 120px"></textarea>
            </div>
            <h3 class="tm_title2" style="padding-top: 10px">9CAN通讯总结介绍一下?</h3>
            <div style="padding:0 30px;">
                <textarea rows="6" name="answer" class="form-control2" placeholder="这里写答案..." style="height: 120px"></textarea>
            </div>
            <h3 class="tm_title2" style="padding-top: 10px;">
                10CAN初始化配置步骤?
            </h3>
            <div style="padding:0 30px;">
                <textarea rows="6" name="answer" class="form-control2" placeholder="这里写答案..." style="height: 120px"></textarea>
            </div>
            <h3 class="tm_title2" style="padding-top: 10px;">
                11CAN发送数据格式?
            </h3>
            <div style="padding:0 30px;">
                <textarea rows="6" name="answer" class="form-control2" placeholder="这里写答案..." style="height: 120px"></textarea>
            </div>

            <div class="form-group" style="overflow: hidden" id="hiddenSubmit">
                <div class="col-lg-4 col-lg-offset-4 col-sm-12" style="padding-top: 5%">
                    <a id="btn1" href="javascript:document:updateStatusOne(7);"  class="btn btn-primary btn-lg btn-block" style="height:60px;line-height:34px;font-size:21px;" role="button">阅卷</a>
                    <a id="btn2" href="javascript:document:goBack(7);" class="btn btn-primary btn-lg btn-block" style="height:60px;line-height:34px;font-size:21px;" role="button">返回</a>
                </div>
            </div>
            <!--<div class="form-group" style="overflow: hidden" id="hiddenSubmit">
                <div class="col-lg-4 col-lg-offset-4 col-sm-12" style="padding-top: 5%">
                    <a href="#" data-reveal-id="myModal" class="btn btn-primary btn-lg btn-block" style="height:60px;line-height:34px;font-size:21px;" role="button">交卷</a>
                </div>
                <div id="myModal" class="reveal-modal">
                    <h1 class="qr_title">确认提示</h1>
                    <p><i class="fa fa-3x fa-question-circle text-info pull-left"></i> <span style="position: relative;">再次确认是否交卷?仔细核对姓名和电话号码是否正确,交卷后将不能继续答题!</span></p>
                    <div class="form-group" style="padding-top: 20px">
                        <div class="pull-right">
                            <button type="submit" onclick="submitAnswer();" class="btn btn-primary btn-lg" style="font-size: 16px">确定</button>
                            &nbsp;&nbsp;
                            <button type="submit" class="btn btn-default btn-lg close-reveal-modal" style="font-size: 16px">取消</button>
                        </div>
                    </div>
                    <a class="close-reveal-modal close-reveal">&#215;</a>
                </div>
            </div>-->
        </div>
    </div>
</div>
<script  th:src="@{/js/jquery-3.5.1.min.js}"></script>
<script th:src="@{/answer/js/bootstrap.min.js}"></script>
<script th:src="@{/answer/js/uploadImg.js}"></script>
<script th:src="@{/answer/js/common.js}"></script>
<script th:src="@{/ajax/libs/layer/layer.js}"></script>
<script>
    jQuery.browser={};
    (function(){
        jQuery.browser.msie=false;
        jQuery.browser.version=0;
        if(navigator.userAgent.match(/MSIE ([0-9]+)./)){
            jQuery.browser.msie=true;
            jQuery.browser.version=RegExp.$1;
        }
    })();
    function getAnswerByPhone(){
        if(prefix==undefined){
            prefix="/exam/api";
        }
        var userPhone=$("#userPhone").val();
        var result={
            "answer":{
                "userPhone":userPhone,
                "paperType":7
            },
            "answerDetails":[{
            }]
        }
        var url=prefix+"/answer/getAnswerByPhone";
        url = url.replace('//', "/");
        $.ajax({
            type: "post",
            dataType: "json",
            contentType:"application/json",
            url:url,
            data: JSON.stringify( result),
            success:function(r) {
                if (r.code == 200) {
                    $(".pull-right").hide();
                    var answer=r.data.answer;
                    var answerDetails=r.data.answerDetails;
                    $("#answerId").val(answer.id);
                    $("#userPhone").val(answer.userPhone);
                    $("#userName").val(answer.username);
                    $("#userPhone").attr("readOnly",true);
                    $("#userName").attr("readOnly",true);
                    answerDetails.forEach(function(obj,index,array){
                        $("textarea[name='answer']")[index].value=obj.answer;
                        $("textarea[name='answer']")[index].readOnly=true;
                    });
                } else {

                }
            }
        });
    }

    $(document).ready(function(){
        getAnswerByPhone()
    });
</script>
<style type="text/css">
    @media print {
        .noprint{display:none;}
    }
</style>
<script type="text/javascript" th:src="@{/js/jquery.jqprint-0.3.js}" ></script>
<script type="text/javascript">
    function a(){
        $("#btn1").hide();
        $("#btn2").hide();
        $("#ddd").jqprint();
    }
</script>
</body>
</html>