Sei sulla pagina 1di 8

J

N
T
U
W
O
R
L
D
Code No: A109100106 Set No. 1
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
I B.Tech. I Mid Examinations, November 2011
COMPUTER PROGRAMMING AND DATA STRUCTURES
Objective Exam
Name: ______________________________ Hall Ticket No.

Answer All Questions. All Questions Carry Equal Marks.Time: 20 Min. Marks: 10.

I Choose the correct alternative:

1. What will be sum of the binary numbers 1111 and 11001 [ ]
(A) 111100 (B) 100010 (C) 11110 (D) 101000

2. Which one of the following is known as the language of the computer [ ]
(A) Programming language (B) Machine language
(C) High level language (D) Assembly level language

3. Find the output [ ]
Void main()
{char a[]=12345\0;
int i=strlen(a);
printf(here in 3 %d\n,++i);}
(A) here in 3 (B) here in 3 6 (C) 6 (D) 3

4. Which of the following is syntactically correct [ ]
(A) for(;); (B) for(); (C) for(,); (D) for(;;);

5. Find out the output for the following [ ]
#include<stdio.h>
main() {
int c=--2;
printf(c=%d,c);}
(A) -2 (B) 0 (C) 2 (D) None

6. Identify the result [ ]
Void main()
{ int i=5;
Printf(%d,i+++++i);}
(A) 5 (B) 6 (C) 10 (D) compiler error

7. which one of the following is not a translator program [ ]
(A) Assembler (B) Interpreter (C) Linker (D) Compiler

8. What will be the ASCII Octal value of A [ ]
(A) 100 (B) 101 (C) 110 (D) 111

9. a<<1 is equal to [ ]
(A) multiplying by 2 (B) dividing by 2 (C) added 2 (D) None

Cont..2
A
www.jntuworld.com
www.jntuworld.com
J
N
T
U
W
O
R
L
D

Code No: A109100106 :2: Set No. 1


10. Consider the following and find the output [ ]
Main()
{ int a=0;int b=30;char x=1;
If (a,b,x)
Printf(Hello);
}

(A) compiler error (B) abxHello (C) Hello (D) None


II Fill in the blanks

11. The process of repeating a group of statements in an algorithm is known as___________

12. Extend the term CPU ________________________________

13. Monitor, keyboard, mouse and printers are _________devices

14. C was developed by ____________________

15. _________is used to compile your c program

16. Short Integer size is ____ bytes

17. The while loop repeats a statement until the test at the top proves _______

18. The __________statement transfers control to a statement within its body

19. The _______is a unconditional branching statement used to transfer control of the program from
one statement to another

20. ANSI stands for __________________________________________





-oOo-






www.jntuworld.com
www.jntuworld.com
J
N
T
U
W
O
R
L
D
Code No: A109100106 Set No. 2
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
I B.Tech. I Mid-Term Examinations, November 2011
COMPUTER PROGRAMMING AND DATA STRUCTURES
Objective Exam
Name: ______________________________ Hall Ticket No.

Answer All Questions. All Questions Carry Equal Marks.Time: 20 Min. Marks: 10.

I Choose the correct alternative:

1. Which of the following is syntactically correct [ ]
(A) for(;); (B)for(); (C) for(,); (D) for(;;);

2. Find out the output for the following [ ]
#include<stdio.h>
main() {
int c=--2;
printf(c=%d,c);}
(A) -2 (B) 0 (C) 2 (D) None

3. Identify the result [ ]
Void main()
{ int i=5;
Printf(%d,i+++++i);}
(A) 5 (B) 6 (C) 10 (D) compiler error

4. Which one of the following is not a translator program [ ]
(A) Assembler (B) Interpreter (C) Linker (D) Compiler

5. What will be the ASCII Octal value of A [ ]
(A) 100 (B) 101(C) 110 (D) 111

6. a<<1 is equal to [ ]
(A) multiplying by 2 (B) dividing by 2 (C) added 2 (D) None

7. Consider the following and find the output [ ]
Main()
{ int a=0;int b=30;char x=1;
If (a,b,x)
Printf(Hello);
}

(A) compiler error (B) abxHello (C) Hello (D) None

8. What will be sum of the binary numbers 1111 and 11001 [ ]
(A) 111100 (B) 100010 (C) 11110 (D) 101000

Cont..2


A
www.jntuworld.com
www.jntuworld.com
J
N
T
U
W
O
R
L
D

Code No: A109100106 :2: Set No. 2


9. Which one of the following is known as the language of the computer [ ]
(A) Programming language (B) Machine language
(C) High level language (D) Assembly level language

10. Find the output [ ]
Void main()
{char a[]=12345\0;
int i=strlen(a);
printf(here in 3 %d\n,++i);}
(A) here in 3 (B) here in 3 6 (C) 6 (D) 3

II Fill in the blanks

11. C was developed by ____________________

12. _________is used to compile your c program

13. Short Integer size is ____ bytes

14. The while loop repeats a statement until the test at the top proves _______

15. The __________statement transfers control to a statement within its body

16. The _______is a unconditional branching statement used to transfer control of the program from
one statement to another

17. ANSI stands for __________________________________________

18. The process of repeating a group of statements in an algorithm is known as___________

19. Extend the term CPU ________________________________

20. Monitor, keyboard, mouse and printers are _________devices





-oOo-

www.jntuworld.com
www.jntuworld.com
J
N
T
U
W
O
R
L
D
Code No: A109100106 Set No. 3
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
I B.Tech. I Mid-Term Examinations, November 2011
COMPUTER PROGRAMMING AND DATA STRUCTURES
Objective Exam
Name: ______________________________ Hall Ticket No.

Answer All Questions. All Questions Carry Equal Marks.Time: 20 Min. Marks: 10.

I Choose the correct alternative:

1. Identify the result [ ]
Void main()
{ int i=5;
Printf(%d,i+++++i);}
(A) 5 (B) 6 (C) 10 (D) compiler error

2. Which one of the following is not a translator program [ ]
(A) Assembler (B) Interpreter (C) Linker (D) Compiler

3. What will be the ASCII Octal value of A [ ]
(A) 100 (B) 101 (C) 110 (D) 111

4. a<<1 is equal to [ ]
(A) multiplying by 2 (B) dividing by 2 (C) added 2 (D) None

5. Consider the following and find the output [ ]
Main()
{ int a=0;int b=30;char x=1;
If (a,b,x)
Printf(Hello);
}

(A) compiler error (B) abxHello (C) Hello (D) None

6. What will be sum of the binary numbers 1111 and 11001 [ ]
(A) 111100 (B) 100010 (C) 11110 (D) 101000

7. Which one of the following is known as the language of the computer [ ]
(A) Programming language (B) Machine language
(C) High level language (D) Assembly level language

8. Find the output [ ]
Void main()
{char a[]=12345\0;
int i=strlen(a);
printf(here in 3 %d\n,++i);}
(A) here in 3 (B) here in 3 6 (C) 6 (D) 3

Cont..2

A
www.jntuworld.com
www.jntuworld.com
J
N
T
U
W
O
R
L
D
Code No: A109100106 :2: Set No. 3


9. Which of the following is syntactically correct [ ]
(A) for(;); (B) for(); (C) for(,); (D) for(;;);

10. Find out the output for the following [ ]
#include<stdio.h>
main() {
int c=--2;
printf(c=%d,c);}
(A) -2 (B) 0 (C) 2 (D) None


II Fill in the blanks

11. Short Integer size is ____ bytes

12. The while loop repeats a statement until the test at the top proves _______

13. The __________statement transfers control to a statement within its body

14. The _______is a unconditional branching statement used to transfer control of the program from
one statement to another

15. ANSI stands for __________________________________________

16. The process of repeating a group of statements in an algorithm is known as___________

17. Extend the term CPU ________________________________

18. Monitor, keyboard, mouse and printers are _________devices

19. C was developed by ____________________

20. _________is used to compile your c program




-oOo-

www.jntuworld.com
www.jntuworld.com
J
N
T
U
W
O
R
L
D
Code No: A109100106 Set No. 4
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
I B.Tech. I Mid-Term Examinations, November 2011
COMPUTER PROGRAMMING AND DATA STRUCTURES
Objective Exam
Name: ______________________________ Hall Ticket No.

Answer All Questions. All Questions Carry Equal Marks.Time: 20 Min. Marks: 10.

I Choose the correct alternative:

1. What will be the ASCII Octal value of A [ ]
(A) 100 (B) 101 (C) 110 (D) 111

2. a<<1 is equal to [ ]
(A) multiplying by 2 (B) dividing by 2 (C) added 2 (D) None

3. Consider the following and find the output [ ]
Main()
{ int a=0;int b=30;char x=1;
If (a,b,x)
Printf(Hello);
}

(A) compiler error (B) abxHello (C) Hello (D) None

4. What will be sum of the binary numbers 1111 and 11001 [ ]
(A) 111100 (B) 100010 (C) 11110 (D) 101000

5. Which one of the following is known as the language of the computer [ ]
(A) Programming language (B) Machine language
(C) High level language (D) Assembly level language

6. Find the output [ ]
Void main()
{char a[]=12345\0;
int i=strlen(a);
printf(here in 3 %d\n,++i);}
(A) here in 3 (B) here in 3 6 (C) 6 (D) 3

7. Which of the following is syntactically correct [ ]
(A) for(;); (B) for(); (C) for(,); (D) for(;;);

8. Find out the output for the following [ ]
#include<stdio.h>
main() {
int c=--2;
printf(c=%d,c);}
(A) -2 (B) 0 (C) 2 (D) None

Cont..2
A
www.jntuworld.com
www.jntuworld.com
J
N
T
U
W
O
R
L
D

Code No: A109100106 :2: Set No. 4


9. Identify the result [ ]
Void main()
{ int i=5;
Printf(%d,i+++++i);}
(A) 5 (B) 6 (C) 10 (D) compiler error

10. which one of the following is not a translator program [ ]
(A) Assembler (B) Interpreter (C) Linker (D) Compiler


II Fill in the blanks

11. The __________statement transfers control to a statement within its body

12. The _______is a unconditional branching statement used to transfer control of the program from
one statement to another

13. ANSI stands for __________________________________________

14. The process of repeating a group of statements in an algorithm is known as___________

15. Extend the term CPU ________________________________

16. Monitor, keyboard, mouse and printers are _________devices

17. C was developed by ____________________

18. _________is used to compile your c program

19. Short Integer size is ____ bytes

20. The while loop repeats a statement until the test at the top proves _______





-oOo-

www.jntuworld.com
www.jntuworld.com

Potrebbero piacerti anche