爱奇艺2020校招Java方向笔试题(第一场)
时长:120分钟 总分:99分
97浏览 0人已完成答题
题型介绍
题型 | 单选题 | 多选题 |
---|---|---|
数量 | 16 | 4 |
计算下列程序的时间复杂度() for (i=1i&ltni++) &...
for (i=1i<ni++) for(j=1j<mj++) {a1,a2,a3,a4}
一组N个站点共享一个30Kbps的纯ALOHA信道, 每个站点平均每100...
有一张表,列名称和列类型如下: Id Int unsigned Uname...
Id Int unsigned Uname Varchar(30) gender Char(1) weight Tinyint unsigned Birth Date Salary Decimal(10,2) lastlogin Datetime info Varchar(2000)对这张表进行优化,可行的是( )
在Java线程中可以通过setDaemon(true)设置线程为守护线程...
对于如下代码,描述正确的是: class Animal{
class Animal{ public void move(){ System.out.println("the animal is moving") } } class Dog extends Animal{ public void move(){ System.out.println("the dog can run") } public void bark(){ System.out.println("the dog can bark") } } public class TestDog{ public static void main(String args[]){ Animal a = new Animal() Animal b = new Dog() } }
对于如下代码,运行结果是: public class Test {&nbs...
public class Test { public static void main(String[] args) { double[] nums = {-1.6} for (double num : nums) { test(num) } } private static void test(double num) { System.out.println(Math.floor(num)) System.out.println(Math.ceil(num)) } }
阅读下列代码 import java.util.Arrays publi...
import java.util.Arrays public class Test { public static void main(String [] args) { int a[] ={34,12,35,54,22,33,56} Arrays.sort(a) for(int j=0j<a.lengthj++) System.out.print(a[j]+"") } }
一个函数定义如下: public void doSomething( in...
public void doSomething( int[][] mat) { for( int row = 0 row < mat.length row++) for(int col = 0 col < mat[0].length col++) mat[row][col] = mat[row][mat[0].length - 1 - col] }
如果mat为下列2行6列的值:
1 3 5 7 9 11 0 2 4 6 8 10
那么,doSomething(mat)执行完成后,mat的值是?()
public class Test { &nbspprivate int...
public class Test { private int eat=1 double drink = 2.0 protected int sleep = 3 public double run = 4.0 }与Test在同一个包下的子类对象可以访问以下哪些变量()