2022~2025๋…„ ๊ธฐ์ถœ ๋ฌธ์ œ ํ’€์ด.

10๊ฑด์˜ ํ•ญ๋ชฉ

  • 2025๋…„ 6์›” 24์ผ

    1๋ฒˆ ๋ฌธ์ œ: ์•„๋ž˜ ์„ค๋ช…์— ๋งž๋Š” RAID ๋‹จ๊ณ„๋ฅผ ์ˆซ์ž๋กœ ์ž‘์„ฑํ•˜์‹œ์˜ค. Striping(์ŠคํŠธ๋ผ์ดํ•‘) ๊ตฌํ˜„ ๋ฐฉ์‹ I/O ๋กœ๋“œ์˜ ๋ถ„์‚ฐ์œผ๋กœ ๋งค์šฐ ๋น ๋ฅธ ์†๋„ ๋ฐ์ดํ„ฐ๋ฅผ ๋ธ”๋Ÿญ์œผ๋กœ ๋ถ„ํ•  ์ €์žฅํ•˜๋ฉฐ, ๊ฐ ๋ธ”๋Ÿญ์€ ๋‹ค๋ฅธ ๋””์Šคํฌ๋กœ ๋‚˜๋‰˜์–ด ์ €์žฅ ๋‹ต: 0 2๋ฒˆ ๋ฌธ์ œ: ๋‹ค์Œ ์„ค๋ช…์„ ํ™•์ธํ•˜์—ฌ ํ•ด๋‹นํ•˜๋Š” ํ•ญ๋ชฉ์„ ๋ณด๊ธฐ์—์„œ ์ฐพ์•„ ์ ์œผ์‹œ์˜ค.

  • 2025๋…„ 6์›” 24์ผ

    1๋ฒˆ ๋ฌธ์ œ: ๋‹ค์Œ์€ ๊ด€๊ณ„ ๋ฐ์ดํ„ฐ ๋ชจ๋ธ์— ๋Œ€ํ•œ ์„ค๋ช…์ด๋‹ค. ๊ด„ํ˜ธ์•ˆ์— ๋“ค์–ด๊ฐ€๋Š” ์šฉ์–ด๋ฅผ ์ž‘์„ฑํ•˜์‹œ์˜ค. ( )์€ /๋Š” ๊ด€๊ณ„ ๋ฐ์ดํ„ฐ์˜ ์—ฐ์‚ฐ์„ ํ‘œํ˜„ํ•˜๋Š” ๋ฐฉ๋ฒ•์œผ๋กœ, ์›ํ•˜๋Š” ์ •๋ณด๋ฅผ ์ •์˜ํ•  ๋•Œ๋Š” ๊ณ„์‚ฐ ์ˆ˜์‹์„ ์‚ฌ์šฉํ•œ๋‹ค. ์ˆ˜ํ•™์˜ predicate calculus์— ๊ธฐ๋ฐ˜์„ ๋‘๊ณ  ์žˆ์œผ๋ฉฐ, ๊ด€๊ณ„ ๋ฐ์ดํ„ฐ ๋ชจ๋ธ์˜ ์ œ์•ˆ์ž์ธ codd๊ฐ€ ์ˆ˜ํ•™์— ๊ฐ€๊นŒ์šด ๊ธฐ๋ฐ˜์„ ๋‘๊ณ  ํŠน๋ณ„ํžˆ ๊ด€๊ณ„ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค๋ฅผ ์œ„ํ•ด ์ œ์•ˆํ•˜์—ฌ ํƒ„์ƒํ•˜์˜€๋‹ค.

  • 2025๋…„ 6์›” 24์ผ

    1๋ฒˆ ๋ฌธ์ œ: ์•„๋ž˜๋Š” C์–ธ์–ด์˜ 2์ฐจ์› ๋ฐฐ์—ด ํ˜•ํƒœ์ด๋‹ค. field์˜ ๊ฒฝ์šฐ 2์ฐจ์› ๋ฐฐ์—ด ํ˜•ํƒœ๋Š” ์˜ˆ์‹œ์ฒ˜๋Ÿผ ์ถœ๋ ฅ๋˜๋ฏ€๋กœ, ์ด๋ฅผ ์ฐธ๊ณ ํ•˜์—ฌ mines์˜ 2์ฐจ์› ๋ฐฐ์—ด ํ˜•ํƒœ๋ฅผ ์ž‘์„ฑํ•˜์‹œ์˜ค. void main{ field {{0,1,0,1},{0,0,0,1},{1,1,1,0},{0,1,1,1}}; mines {{0,0,0,0},{0,0,0,0},{0,0,0,0},{0,0,0,0}}; int w = 4, h = 4; for(y=0; y<h; y++) { for(x=0; x<w; x++) { if(field[y][x] == 0) continue; for(i=y-1; i<=y+1; i++) { for(j=x-1; j<=x+1; j++) { if(calculate(w,h,j,i) == 1) { mines[i][j] += 1; } } } } } for(y=0; y<h; y++){ for(x=0; x<w; x++) { printf("%d", mines[y][x]); printf("\n"); } } } int calculate(w,h,j,i) { if (i >= 0 && i < h && j >= 0 && j < w) return 1; return 0; } ๋‹ต: 1, 1, 3, 2 3, 4, 5, 3 3, 5, 6, 4 3, 5, 5, 3 2๋ฒˆ ๋ฌธ์ œ: ์•„๋ž˜ ์˜ˆ์‹œ๋ฅผ ๋ณด๊ณ  ๊ด€๊ณ„ ๋Œ€์ˆ˜์— ๋Œ€ํ•œ ๊ธฐํ˜ธ๋ฅผ ์ž‘์„ฑํ•˜์‹œ์˜ค.

  • 2025๋…„ 6์›” 24์ผ

    1๋ฒˆ ๋ฌธ์ œ: ๋‹ค์Œ Java ์ฝ”๋“œ์˜ ์ถœ๋ ฅ๊ฐ’์„ ์ž‘์„ฑํ•˜์‹œ์˜ค. class Static{ public int a = 20; static int b = 0; } public class Main{ public static void main(String[] args) { int a; a = 10; Static.b = a; Static st = new Static(); System.out.println(Static.b++); System.out.println(st.b); System.out.println(a); System.out.print(st.a); } } ๋‹ต: 10 11 10 20 2๋ฒˆ ๋ฌธ์ œ: ๋‹ค์Œ C์–ธ์–ด ์ฝ”๋“œ์˜ ์ถœ๋ ฅ๊ฐ’์„ ์ž‘์„ฑํ•˜์‹œ์˜ค.

  • 2025๋…„ 6์›” 24์ผ

    1๋ฒˆ ๋ฌธ์ œ: ๋‹ค์Œ์€ C์–ธ์–ด ์ฝ”๋“œ์˜ ๋ฌธ์ œ์ด๋‹ค. ๋ณด๊ธฐ์˜ ์กฐ๊ฑด์— ๋งž๋„๋ก ๊ด„ํ˜ธ์•ˆ์— ์•Œ๋งž์€ ์ฝ”๋“œ๋ฅผ ์ž‘์„ฑํ•˜์‹œ์˜ค. ๋ณด๊ธฐ ์ž…๋ ฅ๊ฐ’์ด 54321์ผ ๊ฒฝ์šฐ ์ถœ๋ ฅ๊ฐ’์ด 43215๋กœ ์ถœ๋ ฅ๋˜์–ด์•ผ ํ•œ๋‹ค. int main(void) { int n[^5]; int i; for (i = 0; i < 5; i++) { printf("์ˆซ์ž๋ฅผ ์ž…๋ ฅํ•ด์ฃผ์„ธ์š” : "); scanf("%d", &n[i]); } for (i = 0; i < 5; i++) { printf("%d", ( ) ); } return 0; } ๋‹ต: n$(i+1) % 5$ 2๋ฒˆ ๋ฌธ์ œ: ๋‹ค์Œ์€ JAVA ์ฝ”๋“œ ๋ฌธ์ œ์ด๋‹ค.

  • 2025๋…„ 6์›” 24์ผ

    1๋ฒˆ ๋ฌธ์ œ: ๋‹ค์Œ์€ Java ์ฝ”๋“œ์ด๋‹ค. ์˜ฌ๋ฐ”๋ฅธ ์ถœ๋ ฅ ๊ฒฐ๊ณผ๋ฅผ ์ž‘์„ฑํ•˜์‹œ์˜ค. public class main{ public static void main(String[] args) { A b = new B(); b.paint(); b.draw(); } } class A { public void paint() { System.out.print("A"); draw(); } public void draw() { System.out.print("B"); draw(); } } class B extends A { public void paint() { super.draw(); System.out.print("C"); this.draw(); } public void draw() { System.out.print("D"); } } ๋‹ต: BDCDD 2๋ฒˆ ๋ฌธ์ œ: ๋‹ค์Œ ์„ค๋ช…ํ•˜๋Š” ์šฉ์–ด๋ฅผ ๋ณด๊ธฐ์— ๋งž๊ฒŒ ๊ณจ๋ผ ๊ธฐํ˜ธ๋ฅผ ์ž‘์„ฑํ•˜์‹œ์˜ค.

  • 2025๋…„ 6์›” 24์ผ

    1๋ฒˆ ๋ฌธ์ œ: ๋‹ค์Œ Java ์ฝ”๋“œ์—์„œ ์•Œ๋งž๋Š” ์ถœ๋ ฅ ๊ฐ’์„ ์ž‘์„ฑํ•˜์‹œ์˜ค. class Connection { private static Connection _inst = null; private int count = 0; static public Connection get() { if(_inst == null) { _inst = new Connection(); return _inst; } return _inst; } public void count() { count++; } public int getCount() { return count; } } public class main { public static void main(String[] args) { Connection conn1 = Connection.get(); conn1.count(); Connection conn2 = Connection.get(); conn2.count(); Connection conn3 = Connection.get(); conn3.count(); conn1.count(); System.out.print(conn1.getCount()); } } ๋‹ต: 4 2๋ฒˆ ๋ฌธ์ œ: ๋‹ค์Œ C์–ธ์–ด ์ฝ”๋“œ์—์„œ ์•Œ๋งž๋Š” ์ถœ๋ ฅ ๊ฐ’์„ ์ž‘์„ฑํ•˜์‹œ์˜ค.

  • 2025๋…„ 6์›” 24์ผ

    1๋ฒˆ ๋ฌธ์ œ: ๋‹ค์Œ์€ Java ์ฝ”๋“œ์— ๋Œ€ํ•œ ๋ฌธ์ œ์ด๋‹ค. ์•„๋ž˜ ์ฝ”๋“œ๋ฅผ ํ™•์ธํ•˜์—ฌ ์•Œ๋งž๋Š” ์ถœ๋ ฅ๊ฐ’์„ ์ž‘์„ฑํ•˜์‹œ์˜ค. class Main { public static void main(String[] args) { int[] a = new int[]{1, 2, 3, 4}; int[] b = new int[]{1, 2, 3, 4}; int[] c = new int[]{1, 2, 3}; check(a, b); check(a, c); check(b, c); } public static void check(int[] a, int[] b) { if (a==b) { System.out.print("O"); }else{ System.out.print("N"); } } } ๋‹ต: NNN 2๋ฒˆ ๋ฌธ์ œ: ๋‹ค์Œ ๋ฌธ์ œ์—์„œ ์„ค๋ช…ํ•˜๋Š” ์šฉ์–ด๋ฅผ ์ž‘์„ฑํ•˜์‹œ์˜ค.

  • 2025๋…„ 6์›” 24์ผ

    1๋ฒˆ ๋ฌธ์ œ: ๋‹ค์Œ์€ Java ์ฝ”๋“œ์— ๋Œ€ํ•œ ๋ฌธ์ œ์ด๋‹ค. ์•„๋ž˜ ์ฝ”๋“œ๋ฅผ ํ™•์ธํ•˜์—ฌ ์•Œ๋งž๋Š” ์ถœ๋ ฅ๊ฐ’์„ ์ž‘์„ฑํ•˜์‹œ์˜ค. public class Main{ static String[] s = new String[^3]; static void func(String[]s, int size){ for(int i=1; i<size; i++){ if(s[i-1].equals(s[i])){ System.out.print("O"); }else{ System.out.print("N"); } } for (String m : s){ System.out.print(m); } } public static void main(String[] args){ s[^0] = "A"; s[^1] = "A"; s[^2] = new String("A"); func(s, 3); } } ๋‹ต: OOAAA 2๋ฒˆ ๋ฌธ์ œ: ๋‹ค์Œ์€ ํŒŒ์ด์ฌ์— ๋Œ€ํ•œ ๋ฌธ์ œ์ด๋‹ค.

  • 2025๋…„ 6์›” 24์ผ

    1๋ฒˆ ๋ฌธ์ œ: ๋‹ค์Œ์€ ๋„คํŠธ์›Œํฌ ๋ณด์™„์— ๊ด€๋ จ๋œ ๋ฌธ์ œ์ด๋‹ค. ๊ด„ํ˜ธ์•ˆ์— ์•Œ๋งž๋Š” ์šฉ์–ด๋ฅผ ์ž‘์„ฑํ•˜์‹œ์˜ค. ( )์€/๋Š” โ€˜์„ธ์…˜์„ ๊ฐ€๋กœ์ฑ„๋‹ค.โ€™ ๋ผ๋Š” ์˜๋ฏธ๋กœ ๋‹ค๋ฅธ ์‚ฌ๋žŒ์˜ ์„ธ์…˜ ์ƒํƒœ๋ฅผ ํ›”์น˜๊ฑฐ๋‚˜ ๋„์šฉํ•˜์—ฌ ์•ก์„ธ์Šคํ•˜๋Š” ํ•ดํ‚น ๊ธฐ๋ฒ•์ด๋‹ค. TCP ( )์€/๋Š” TCP์˜ 3-way ํ•ธ๋“œ์…ฐ์ดํฌ๊ฐ€ ์™„๋ฃŒ๋œ ํ›„์— ๊ณต๊ฒฉ์ž๊ฐ€ ์‹œํ€€์Šค ๋ฒˆํ˜ธ ๋“ฑ์„ ์กฐ์ž‘ํ•˜์—ฌ ์ •์ƒ์ ์ธ ์„ธ์…˜์„ ๊ฐ€๋กœ์ฑ„๊ณ  ์ธ์ฆ ์—†์ด ํ†ต์‹ ์„ ํƒˆ์ทจํ•˜๋Š” ๊ณต๊ฒฉ ๊ณต๊ฒฉ์ด๋‹ค.