欢迎来到天天文库
浏览记录
ID:14888671
大小:44.50 KB
页数:8页
时间:2018-07-30
《2008最新智力面试题》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、2008最新智力面试题2008-02-1916:49:231.排成3行3列的矩阵形式的九个点。如何用一笔划出4条直线,经过这所有九个点。答案:用1~9九个数字代表点从左至右由上往下排列第一条经过左边147并且延伸一个点的距离第二条经过86也延伸一个点第三条经过321第四条经过159 2.一块木板上钉有9个钉子,排成3行3列,以其中的任意3个钉子为顶点.一共可以组成多少个三角形?答案:84-8=769个钉子任选3个有84种可能有8中可能是在一条直线上的 3.显示产品分页效果3行3列答案:<%DimfileName,postionfileName=Request.ServerVariables("script_name")postion=InstrRev(fileName,"/")+1fileName=Mid(fileName,postion)setrs=server.CreateObject("adodb.recordset")sql="select*fromtgorderbycp_01_01desc"rs.opensql,conn,1,3%>3、h="100%"border="0"cellspacing="0"cellpadding="0"><%ifnot(rs.bofandrs.eof)thenpages=9rs.pagesize=pagesifnotisempty(Request.QueryString("page"))thenthispage=clng(Request.QueryString("page"))elsethispage=1endifrscount=rs.recordcountifthispage=""thenthispage=1ifthispage4、<1thenthispage=1if(thispage-1)*pages>rscountthenif(rscountmodpages)=0thenthispage=rscountpageselsethispage=rscountpages+1endifendifif(rscountmodpages)=0thenallpages=rscountpageselseallpages=rscountpages+1endifrs.absolutepage=thispagei=1%><%dowhilenotrs.eofandpag5、es>0%>"title=<%=rs("cp_01_02")%>><%=rs("cp_01_02")%>"width="125"height="163"><%'分栏主要由下面这个判断来执行的,本例是每行显示两栏ifimod3=0then%><%endif%><
3、h="100%"border="0"cellspacing="0"cellpadding="0"><%ifnot(rs.bofandrs.eof)thenpages=9rs.pagesize=pagesifnotisempty(Request.QueryString("page"))thenthispage=clng(Request.QueryString("page"))elsethispage=1endifrscount=rs.recordcountifthispage=""thenthispage=1ifthispage
4、<1thenthispage=1if(thispage-1)*pages>rscountthenif(rscountmodpages)=0thenthispage=rscountpageselsethispage=rscountpages+1endifendifif(rscountmodpages)=0thenallpages=rscountpageselseallpages=rscountpages+1endifrs.absolutepage=thispagei=1%><%dowhilenotrs.eofandpag
5、es>0%>
6、%pages=pages-1rs.movenexti=i+1loopendif%>共<%=allpages%>页当前第<%=thispage%>页<%ifthispage<>1then%>">首页7、1)%>">上页<%EndIf%><%ifthispage<>allpagesthen%>">下页">末页<%EndIf%> 4.身高互不相等的9个人排成3行3列,要求前一行的每个人都比他同列身后的个子矮,求排发总数??答案:(9C3)*(6C3)*(3C3)=1680既然同一列中,
7、1)%>">上页<%EndIf%><%ifthispage<>allpagesthen%>">下页">末页<%EndIf%>
8、前一个人比后一个人矮,所以只要选出3个人排成一列,那么排列的顺序就是唯一确定的。所以,只要选出列的排列顺序(即,选出3组人,再按组来排序)5.我在晨星上看到3行3列的方格,右边标记着大盘中盘小盘,每个基金在方格的位置不同,请问那个格子有什么意思呢答案:这是多股同列,可以把9只
此文档下载收益归作者所有