爱奇艺2020校招iOS方向笔试题(第二场)
时长:120分钟 总分:99分
117浏览 0人已完成答题
题型介绍
题型 | 单选题 | 多选题 |
---|---|---|
数量 | 19 | 2 |
设n位同学从左到右依次编号为1, 2, &hellip, n,合唱队形需使队列满足T1...
现已知有10个学生的身高(厘米)为:150、172、163、180、178、160、172、154、165、158,计算他们所组成的最长合唱队队形的长度为多少()
如果在带权有向图中,用顶点表示事件,用有向边表示活动,边上的权值表示活动的...

MyISAM引擎的表tg_user,主键为tg_id,tg_email是允...
下列程序的运行结果是5 5,请将横线处缺失程序补充完整() #includ...
#include <iostream> #include <algorithm> #include <vector> #include<iterator> using namespace std class f { public: int operator()() const {return __________} private: static int x } int f::x=0 int main() { int A[]={7,8,9,4,0} vector<int> B(A+1,A+3) ostream_iterator< int > output( cout, " " ) generate(B.begin(),B.end(),f()) copy(B.begin(),B.end(),output) cout<<endl return 0 }
某市交通局正在查找一个车牌号。据目击者称,该车牌号是一个4位十进制数,是某...
#include <iostream.h> int main( ) { int i=0, n=0 for (i=10 i<22 i++) { n = i*i*i if ( _____________ ) cout << "车牌号是:" << n << endl } return 0 }则程序中下划线处应填写的内容是( )。
以下有关该程序的说法,正确的是( )。
#include &ltstdio.h&gt main( ) { &n...
#include <stdio.h> main( ) { int i, n=0 char c, str[] = "test" for(i=0 str[i] i++) { c = str[i] switch(i) { case 1: case 3: case 4: putchar(c) printf("%d", ++n) break default: putchar('Q') } } }程序运行结果是:( )
与下列代码: NSDictionary *dictionary = [NS...
NSDictionary *dictionary = [NSDictionary dictionaryWithObjectsAndKeys:@"obj1", @"value1", @"obj2", @"value2", nil]等价的是:
考虑以下代码: NSComparisonResult res = [nil...
NSComparisonResult res = [nil compare: nil] if(res == NSOrderedSame) NSLog(@"Equal") else NSLog(@"Not Equal")编译并执行代码的结果是________________.
int main( int argc, const char *argv[...
int main( int argc, const char *argv[] ){ NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init] NSString *str1 = @"1" NSString *str2 = [NSString stringWithString: @"2"] NSLog (@"%s: %x\n", [str1 cString], [str1 retainCount] ) NSLog (@"%s: %x\n", [str2 cString], [str2 retainCount] ) [str2 release] [pool release] return 0 }上面的程序输出是什么()
NSArray *array=[NSArray arrayWithObje...
NSArray *array=[NSArray arrayWithObjects:@"2",@"3",@"4",@"1", nil] int a=[[arr objectAtIndex:0]intValue] for(int i = 0, i < arr.count - 1,i++){ int b=[[arr objectAtIndex:i]intValue] if(a < b){ [arr replaceObjectAtIndex:0 withObject:[NSString stringWithFormat:@“%d”,b]] } a=[[arr objectAtIndex:0]intValue] } NSLog(@“%d”,a)上述程序输出是()
function loop() { &nbsp &nbsp initi...
function loop() { initialize() do { var message = get_next_message() process_message(message) } while (message != quit) }阅读上面程序,下列说法错误的是()