【判断题】有两个文件test1和test2,test2有内容,现在执行cat test1>>test2,则test2文件内容全部删除。( )
【单选题】有如下程序:#include <iostream>using namespace std:class Test{public: Test() {n+=2 ~Test() {n-=3 static int getNum() {return n}privaue: static int n:}int Test::n=1int main(){ Test* p=new Test delete p cout...
【多选题】下列语句的输出是: public class test{ public static void main(String []args){ A test1=new A(); A test2=new A(); A test3=new A(); test1.setId(); System.out.println("test1, id:"+test1.getId()+" diff:"+test...
【单选题】假设一个目录中有 5 个文件: test.c test1.c test2.c test3.cpp test10.c ,执行命令“ ls test*.? ”后显示的文件是( )。
A.
test1.c test2.c test10.c
B.
test.c test1.c test2.c test3.cpp
C.
test.c test1.c test2.c test10.c
D.
test1.c test2.c test3.cpp
【单选题】设有如下程序,其调试结果为: class Q2 { public static void main(String[] args) { int[] seeds = {1,2,3,4,6,8}; int n= seeds.length; for (int i = 0; i < 3; i++) for (int k=0; k< n-1; k++) seeds[k]=seeds[k+1]; for ...
【判断题】心理学的研究对象,从人的社会性的存在的角度,可以分为人的心理与动物心理。
【单选题】假设一个目录中有 5 个文件: test.c test1.c test2.c test3.cpp test10.c ,执行命令“ ls test ? .* ”后显示的文件是( )。
A.
test1.c test2.c test3.cpp
B.
test1.c test2.c test10.c
C.
test.c test1.c test2.c test10.c
D.
test.c test1.c test2.c test3.cpp
【单选题】设有如下程序,其调试结果为: class Q2 { public static void main(String[] args) { int[] seeds = {1,2,3,4,6,8}; int n= seeds.length; for (int i = 0; i < 3; i++) for (int k=0; k< n-1; k++) seeds[k]=seeds[k+1]; for ...