Bài kiểm tra IQ

CÔNG TY TNHH GIẢI PHÁP CÔNG NGHỆ MIGI  
Địa chỉ: Số 19, nghách 1/37 phố Văn Hội, phường Đức Thắng,  
quận Bắc Từ Liêm, Hà Nội  
Hvà tên ứng viên: …………………………………. Vtrí ng tuyển: …………………………....  
Ngày: ………………. Điểm IQ: ……………………. Điểm chuyên môn: …………………………  
PHN I: CÂU HI IQ  
(Thi gian:10 phút)  
Câu 1. Điền thêm stiếp theo ca dãy s:  
25  
24  
22  
19  
15  
???  
A. 14  
B. 5  
C. 30  
D.10  
E. 0  
Câu 2. Điền thêm stiếp theo ca dãy s:  
4
6
9
6
14  
19  
???  
A. 16  
B. 24  
C. 32  
D. 6  
E. 10  
Câu 3. Trong 1 bui họp, 12 người bắt tay nhau trước và sau bui hp. Hi có tng cng bao nhiêu cái  
bt tay?  
A. 100  
B. 132  
C. 145  
D. 144  
E. 121  
Câu 4. Mt cái máy sn xuất 100 đơn vị sn phm trong mt phút. Nếu cứ 24 đơn vị sn phẩm được  
đóng gói thành mt thùng, vy máy này sn xuất được bao nhiêu thùng sn phm trong mt gi?  
A. 125  
B. 250  
C. 500  
D. 2,500  
E. 6,000  
Câu 5. Trong bài test ca bn có mt scâu hi. Bạn đã trả li sai 10 câu hi. Kết quả thang điểm ca  
bn chỉ đạt 60%. Vy bài test ca bn có tt cbao nhiêu câu hi?  
A. 20  
B.25  
C.30  
D.35  
Câu 6. Tìm sthích hp  
A. 6  
B. 7  
C. 8  
D.9  
1
CÔNG TY TNHH GIẢI PHÁP CÔNG NGHỆ MIGI  
Địa chỉ: Số 19, nghách 1/37 phố Văn Hội, phường Đức Thắng,  
quận Bắc Từ Liêm, Hà Nội  
Câu 7. Trong một gia đình có sáu thành viên A, B, C, D, E và F. A và B là một cp vchng, A là thành  
viên nam. D là con trai duy nht ca C. C là anh trai ca A. E là em gái ca D. B là con dâu ca F. F có  
chồng đã chết. Có bao nhiêu thành viên nam trong gia đình?  
A. 2  
B.3  
C.4  
D.5  
8. Bn có 84 quả táo đựng trong 12 gi, nếu muốn ăn 1/3 số táo trong mi githì bn cn ít nht bao  
nhiêu ln cn, biết rng mi ln bn cắn được 1/3 ca 1/2 qutáo.  
A. 168  
B.121  
C.144  
D.225  
9. Tám người sơn được 3 cái nhà trong 6 gi. Hi với 12 người sẽ sơn được bao nhiêu cái nhà trong 12  
gi?  
A. 3  
10.  
B.5  
C. 7  
D.9  
A. Hình 1  
B. Hình 2  
C. Hình 3  
D. Hình 4  
2
CÔNG TY TNHH GIẢI PHÁP CÔNG NGHỆ MIGI  
Địa chỉ: Số 19, nghách 1/37 phố Văn Hội, phường Đức Thắng,  
quận Bắc Từ Liêm, Hà Nội  
PHN II: CÂU HI CHUYÊN MÔN  
(Thi gian: 45 phút)  
Question 1: Is HTML a programming language?  
A. Yes B. No  
Question 2: What is one of the reasons Java is different to Javascript?  
A. Java is compiled before it runs and isn't limited to being on a web browser.  
B. Javascript is compiled before it runs and isn't limited to being on a web browser.  
C. Javascript is compiled before it runs and isn't limited to being on a web browser.  
D. Java is just short for Javascript  
Question 3: Non animated gifs are usually lower in file size, why don't people use them for photos?  
A. Because it hasn't caught on.  
B. They are limited to 256 colors.  
C. When they are made to be over 256 colors the image size is larger than png or jpeg most of the time.  
Question 4: What happens to a lot of images saved as jpgs when you put them online.  
A. They are too big in file size  
B. Lower quality and artifacts.  
C. Stretching  
D. Skewing  
Question 5: Which is the correct CSS syntax?  
A. body{color:black}  
C. body{color:"black";}  
D. body {color=black}  
B. {body; color: black}  
Question 6: What does a compiler do?  
A. Make code start  
B. Test if the program runs fine  
C. Convert the code to another computer language, usually to an executable program  
3
CÔNG TY TNHH GIẢI PHÁP CÔNG NGHỆ MIGI  
Địa chỉ: Số 19, nghách 1/37 phố Văn Hội, phường Đức Thắng,  
quận Bắc Từ Liêm, Hà Nội  
Question 7: If you want your condition to depend upon two conditions BOTH being true, what is the  
proper notation to put between the two boolean statements?  
A. &  
C. |  
B. &&  
D. ||  
Question 8: What is the correct syntax for Java main method?  
A. public static void main()  
C. public static void main (string args[])  
D. public static void main (String args[])  
B. public void main (string args[])  
Question 9: [SQL] Sometimes the query "Select count (*) will return fewer rows than the query "Select  
count(value)"?  
A. TRUE  
Question 10: the result of select statement can contain duplicated rows?  
A. TRUE B. FALSE  
Question 11: What type of lock will deny users any access to a table?  
A. Explicit B. Implicit C. Exclusive  
B. FALSE  
D. Shared  
Question 12: What does ACID stand for?  
A. Access, Consistency, Isolation, Data  
B. Atomicity, Consistency, Isolation, Durability  
C. Access, Constraint, Index, Data  
Question 13: What is a database cursor?  
A. A blinking vertical line that indicates the location of the next input on the display screen  
B. A cursor is SQL keyword specifying a retrieved data order  
C. A database object pointing to a currently selected set of records  
Question 14: What does the term 'locking' refer to?  
A. Locking is a process, which logs database usage  
4
CÔNG TY TNHH GIẢI PHÁP CÔNG NGHỆ MIGI  
Địa chỉ: Số 19, nghách 1/37 phố Văn Hội, phường Đức Thắng,  
quận Bắc Từ Liêm, Hà Nội  
B. Locking is a process of database authentication  
C. Locking is a process of preventing users from reading data being changed by other users, and  
prevents concurrent users from changing the same data at the same time  
Question 15: What output will the following statement produce?  
Select NVL2(NULL,'NOT NULL', NULL) from dual;  
A. NULL  
C. Function NVL2 is not defined  
D. None of the above  
B. NOT NULL  
Question 16: A(n) ____ is a template or blueprint from which objects can be instantiated from.  
A. Object B. Class C. Interface D. Abstract class  
Question 17: ____: "Hiding" properties and methods of a class from the "outside world" by making  
these private  
A. Inheritance  
Question 18: ____ inheritance: When a class has two or more parent classes  
A. Multiple B. Diverse C. Single D. Many  
B. Polymorphism  
C. Encapsulation  
D. Abstraction  
Question 19: A ___________ is a method of a class that is automatically called when a new object is  
instantiated from this class  
A. final method  
C. constructor  
D. destructor  
B. abstract method  
Question 20: Choose the correct option for the following code.  
class Student  
{
int marks;  
}
Student s1;  
Student s2=2;  
A. Object s1 should be passed with argument. C. Object s2 will not be created, but program runs  
B. Object s2 should not be declared  
D. Program gives compile time error  
5
CÔNG TY TNHH GIẢI PHÁP CÔNG NGHỆ MIGI  
Địa chỉ: Số 19, nghách 1/37 phố Văn Hội, phường Đức Thắng,  
quận Bắc Từ Liêm, Hà Nội  
Question 21: Which constructor is called while assigning some objects with another?  
A. Default  
C. Copy  
B. Parameterized  
D. Direct assignment is used  
Question 22: It’s necessary to pass object by reference in copy constructor because:  
A. Constructor is not called in pass by reference  
B. Constructor is called in pass by reference only  
C. It passes the address of new object to be created  
D. It passes the address of new object to be created  
Question 23: Which specifier applies only to the constructors?  
A. Public  
B. Protected  
C. Implicit  
D. Explicit  
Question 24: Which among the following is true?  
A. Default constructor can’t be defined by the programmer  
B. Default parameters constructor isn’t equivalent to default constructor  
C. Default constructor can be called explicitly  
D. Default constructor is and always called implicitly only  
Question 25: Which type of constructor can’t have a return type?  
A. Default  
C. Copy  
D. Constructors don’t have a return type  
B. Parameterized  
Question 26: Why do we use static constructors?  
A. To initialize the static members of class  
B. To initialize all the members with static value  
C. To delete the static members when not required  
D. To clear all the static members initialized values  
6
CÔNG TY TNHH GIẢI PHÁP CÔNG NGHỆ MIGI  
Địa chỉ: Số 19, nghách 1/37 phố Văn Hội, phường Đức Thắng,  
quận Bắc Từ Liêm, Hà Nội  
Question 27: Which among the following is true for static constructor?  
A. Static constructors are called with every new object  
B. Static constructors are used initialize data members to zero always  
C. Static constructors can’t be parameterized constructors  
D. Static constructors can be used to initialize the non-static members also  
Question 28: Which of the following is the right syntax for declaring the pointer "p"?  
A. int p;  
B. int *p;  
C. int p*;  
D. None of the above  
Question 29: Which of the following code snippet can be used to access/print the first index of single  
dimensional array of integer pointers " ptr"?  
A. cout << *ptr  
Question 30: Which of the following type of pointer can refer to variable for any type?  
A. Reference B. void C. null D. empty  
Question 31: Which of the following is the right syntax to allocate the memory dynamically?  
A. int *ptr = new[] B. int *ptr = new C. int *ptr = new int D. All of the above  
B. cout << ptr[1]  
C. cout << *ptr[0]  
D. None of the above  
Question 32: What will be the output of below statements?  
String s = "Java"+1+2+"Quiz"+""+(3+4);  
System.out.println(s);  
A. Java12Quiz34 B. Java3Quiz7  
C. Java3Quiz34  
D. Java12Quiz7  
Question 33: What will be output of below statements?  
String s1 = "Cat";  
String s2 = "Cat";  
String s3 = new String("Cat");  
System.out.println(s1==s2);  
System.out.println(s1==s3);  
A. false false  
B. true true  
C. false true  
D. true false  
7
CÔNG TY TNHH GIẢI PHÁP CÔNG NGHỆ MIGI  
Địa chỉ: Số 19, nghách 1/37 phố Văn Hội, phường Đức Thắng,  
quận Bắc Từ Liêm, Hà Nội  
Question 34: What will be the output of below code snippet?  
String s1 = new String("pankaj");  
String s2 = new String("PANKAJ");  
System.out.println(s1 = s2);  
A. true  
B. Pankaj  
C. PANKAJ  
D. false  
Question 35: How many String objects created in below statements?  
String s = "abc"; // line 1  
String s1 = new String("abcd"); // line 2  
A. 3  
B. 4  
C. 2  
D. 1  
Question 36: What will be the output of below program?  
public class Test {  
public static void main(String[] args) {  
String x = "abc";  
String y = "abc";  
x.concat(y);  
System.out.print(x);  
}
}
A. null  
B. abcabc  
C. abc  
D. None of the above  
Question 37: What will be output of below statements?  
String s = "Java String Quiz";  
System.out.println(s.substring(5,3));  
A. Prints "Str"  
B. Runtime Exception StringIndexOutOfBoundsException  
C. Runtime Exception IndexOutOfBoundsException  
D. Compile time error  
Question 38: What is the length of the following array: byte[] data = { 12, 34, 9, 0, -62, 88 };  
8
CÔNG TY TNHH GIẢI PHÁP CÔNG NGHỆ MIGI  
Địa chỉ: Số 19, nghách 1/37 phố Văn Hội, phường Đức Thắng,  
quận Bắc Từ Liêm, Hà Nội  
A. 1  
B. 5  
C. 6  
D. 12  
Question 39: What is an array?  
A. A random integer.  
B. A program that you can use to execute another program and anlyze its run-time behavior.  
C. A sequence of values.  
D. A list of integer  
Question 40: What will be the output of the following program?  
class ArrayOutput  
{
public static void main(String s[])  
{
int i = 50;  
int[] a = new int[10];  
System.out.println(a.length);  
a = new int[100];  
System.out.println(a.length);  
a = new int[i];  
System.out.println(a.length);  
}
}
A. 10  
100  
50  
B. 10  
10  
10  
C. Compilation Error  
D. Throws ArrayIndexOutOfBoundsException  
9
CÔNG TY TNHH GIẢI PHÁP CÔNG NGHỆ MIGI  
Địa chỉ: Số 19, nghách 1/37 phố Văn Hội, phường Đức Thắng,  
quận Bắc Từ Liêm, Hà Nội  
Question 41: What will be the output of the following program?  
public class ArrayOutput  
{
public static void main(String s[])  
{
int student_marks[] = new int[39];  
student_marks = new int[]{10, 20, 30};  
int[] my_array = null;  
my_array = student_marks;  
System.out.println("My Array length is: " + my_array.length);  
System.out.println("Student Marks Array length is: " + student_marks.length);  
}
}
A. My Array length is: 3  
Student Marks Array length is: 39  
B. My Array length is: 39  
Student Marks Array length is: 39  
C. My Array length is: 3  
Student Marks Array length is: 3  
D. Compilation Error or Runtime Error  
Question 42: What is the output of the following program fragment?  
for ( int j = 0; j < 5; j++ )  
{
System.out.print( j + " " );  
}
System.out.println( );  
A. 0 1 2 3 4 5  
B. 0 1 2 3 4  
C. 0 1 2 3 4 5  
D. j j j j j  
10  
CÔNG TY TNHH GIẢI PHÁP CÔNG NGHỆ MIGI  
Địa chỉ: Số 19, nghách 1/37 phố Văn Hội, phường Đức Thắng,  
quận Bắc Từ Liêm, Hà Nội  
Question 43: What is the output of the following Java code fragment?  
class ThreadDemo implements Runnable  
{
int x = 0, y = 0;  
int addX() {x++; return x;}  
int addY() {y++; return y;}  
public void run() {  
for(int i = 0; i < 10; i++)  
System.out.println( Thread.currentThread().getName() + ": " +addX() + " " + addY());  
}
public static void main(String args[])  
{
ThreadDemo obj1 = new ThreadDemo();  
ThreadDemo obj2 = new ThreadDemo();  
Thread t1 = new Thread(obj1);  
Thread t2 = new Thread(obj2);  
t1.start();  
t2.start();  
}
}
A. Compile time Error: There is no start() method.  
B. Will print in this order: 1 2 3 4 5 6... 1 2 3 4 5 6…  
C. Will print in this order: 1 1 2 2 3 3 4 4 5 5…  
D. Will print but may or may not be in an order for Thread t1 and t2 (e.g: 1 1 2 2 1 1 3 3... up to 10 10)  
Question 44: Which of the following methods make thread leave the running state?  
i. yield()  
ii. wait()  
iii. notify()  
iv. notifyAll()  
v. sleep(1000)  
vi. Thread.join()  
vii. Thread.killThread()  
11  
CÔNG TY TNHH GIẢI PHÁP CÔNG NGHỆ MIGI  
Địa chỉ: Số 19, nghách 1/37 phố Văn Hội, phường Đức Thắng,  
quận Bắc Từ Liêm, Hà Nội  
A. iv, v and vii  
B. i, ii and iv  
C. ii, v and vi  
D. iii, iv and vii  
Question 45: Assume the following method is properly synchronized and called from a thread A on an  
object B:  
wait(2000);  
After calling this method, when will the thread A become a candidate to get another turn at the CPU?  
A. After thread A is notified, or after two seconds.  
B. After the lock on B is released, or after two seconds.  
C. Two seconds after thread A is notified.  
D. Two seconds after lock B is released.  
--- Mừng quá, hết rồi T.T ---  
12  
pdf 12 trang Thùy Anh 27/04/2022 6720
Bạn đang xem tài liệu "Bài kiểm tra IQ", để tải tài liệu gốc về máy hãy click vào nút Download ở trên

File đính kèm:

  • pdfbai_kiem_tra_iq.pdf