奇安信2019春招服务端开发试题
时长:120分钟 总分:100分
172浏览 0人已完成答题
题型介绍
题型 | 单选题 | 多选题 |
---|---|---|
数量 | 68 | 12 |
下面程序的输出是什么?() class A { &nbsp &nbsp...
class A { public: void Print() { printf("%d\n", content_) } public: int content_ } void Add(A a) { a.content_ ++ } int main () { A a{content_: 1} Add(a) a.Print() return 0 }
下面程序的输出是什么?() class A { &nbsp &nbsp...
class A { public: A() { printf("A()\n") } virtual ~A() { printf("~A()\n") } } class B : public A { public: B() { printf("B()\n") } ~B() { printf("~B()\n") } } int main() { auto tmp = B() return 0 }
下面代码的输出是什么?() class A { &nbsp &nbsp...
class A { public: A(int32_t item) : content_(item) { } void Print() { printf("%d\n", content_) } public: int32_t content_ } int main() { A a = 1.3f a.Print() return 0 }
class A { &nbsp &nbsp public: &nbsp...
class A { public: virtual void Foo() = 0 virtual void Print() { printf("A\n") } } class B: public A{ public: void Foo() override { printf("FOO\n") } void Print() override { printf("B\n") } } int main() { A* ptr1 = new A A* ptr2 = new B ptr1->Print() ptr2->Print() return 0 }
class A { &nbsp &nbsp public: &nbsp...
class A { public: A() { Foo() } virtual void Foo() { printf("A Foo\n") } } class B : public A { public: B() = default void Foo() override { printf("B Foo\n") } } int main() { B b = B() b.Foo() return 0 }
下面代码的输出是什么?() class A { &nbsp &nbsp...
class A { public: explicit A(int32_t item) : content_(item) { } void Print() { printf("%d\n", content_) } public: int32_t content_ } int main() { A a = 1.3f a.Print() return 0 }
下面程序的输出是什么?() int main() { &nbsp &nb...
int main() { int a[3][3]{ {1,2,3}, {4,5,6}, {7,8,9}, } auto p = *(a + 1) *p = 0 for(auto i = 0 i < 3 i ++) { for(auto j = 0 j < 3 j++) { printf("%d ",a[i][j]) } } return 0 }
下面代码在64位系统上使用g++ -m64编译后的输出是什么() clas...
class A { public: virtual void Print() public: int64_t content_ }__attribute__((packed)) class B : public A { public: void Print() override public: int64_t content_ }__attribute__((packed)) int main() { printf("%d,%d\n", sizeof(A), sizeof(B)) return 0 }
在64位系统使用gcc -m64编译后,下面程序的输出是什么?() int...
int main() { char a[] = "12345" char *b = "12345" printf("%d,%d,%d,%d\n", sizeof(a), sizeof(b), sizeof(*a), sizeof(*b)) return 0 }
int main() { &nbsp &nbsp int a = 65...
int main() { int a = 65535 a = a >> 8 a = a << 8 printf("%d\n", a) return 0 }
#include&nbsp int main() { int a...
#include <stdio.h> int main() { int a = 1, b = 1 float c = 194268.02, d = 194268 printf("%d,%d\n", (a/b)==1, (c-d)==0.02) }</stdio.h><stdio.h> </stdio.h><stdio.h>int main() { </stdio.h><stdio.h> int a = 1, b = 1 </stdio.h><stdio.h> float c = 194268.02, d = 194268 </stdio.h><stdio.h> printf("%d,%d\n", (a/b)==1, (c-d)==0.02) </stdio.h><stdio.h>}</stdio.h>
下面程序的输出是什么?() #define MUL(x) (x * x)...
下面程序的输出是什么?()
#define MUL(x) (x * x) int main() { printf("%d,%d\n", MUL(1+2), MUL(2==2)) return 0 }
int main() { &nbsp &nbsp char a[5] ...
int main() { char a[5] = {'a', 'b', 'c', 'd', 'e'} char b[5] = {'a', 'b', '\0', 'd', 'e'} printf("%d\n", strlen(a)) return 0 }
关于 Spring MVC 的核心控制器 DispatcherServle...
对记录序列{315,299,509,124,487,146}按从小到大的顺...
SELECT COUNT(SAL) AS c&nbsp FROM EMP...
表A中的列B是标识列,属于自动增长数据类型,标识种子是2,标识递增量为3。...
定义file=/dir1/dir2/dir3/my.file.txt,以下...
Linux磁盘空间满了,删除了一部分 nginx access 日志,但是...
python中以下表达式运算结果是: () &gt&gt&gt ...
>>> a = 100
>>> b = False
>>> a * b > -1
>>> b = False
>>> a * b > -1