Question 1

Time: 00:00:00
The default parameter passing mechanism is

 

call by value

call by value

call by reference

call by reference

call by value result

call by value result

None of these.

None of these.

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 2

Time: 00:00:00
Determine output:
main()
{
int i = 5;
printf("%d%d%d%d%d", i++, i--, ++i, --i, i);
}

5,4,5,4

5,4,5,4

4,5,4,4,5

4,5,4,4,5

5,4,5,5,4

5,4,5,5,4

4,5,5,4,5

4,5,5,4,5

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

PrepInsta User

the iteration starts from right to left order in c, you know the rest

Question 3

Time: 00:00:00
What will be printed when this program is executed?
int f(int x)
{
if(x <= 4)
return x;
return f(--x);
}
void main()
{
printf("%d ", f(7));
}

4 5 6 7

4 5 6 7

1 2 3 4

1 2 3 4

4

4

Syntax error

Syntax error

Runtime error

Runtime error

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 4

Time: 00:00:00
Which of the following function calculates the square of 'x' in C?

sqr(x)

sqr(x)

power(x, 2)

power(x, 2)

power(2, x)

power(2, x)

pow(x, 2)

pow(x, 2)

pow(2, x)

pow(2, x)

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

PrepInsta User

option D is correct answer

Question 5

Time: 00:00:00
char* myfunc(char *ptr)
{
ptr+=3;
return(ptr);
}

void main()
{
char *x, *y;
x = "PrepInsta";
y = myfunc(x);
printf("y=%s", y);
}
What will be printed when the sample code above is executed?

y=PrepInsta

y=PrepInsta

y=pInsta

y=pInsta

y=Insta

y=Insta

y=nsta

y=nsta

y=epInsta

y=epInsta

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 6

Time: 00:00:00
#include <stdio.h>
extern int var;
int main()
{
var = 10;
printf("%d ", var);
return 0;
}

20

20

compiler error

compiler error

run time error

run time error

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 7

Time: 00:00:00
Which oh the statement is incorrect ?

Return type missing

Return type missing

Dept_name is mismatched

Dept_name is mismatched

Reference relation is not mentioned

Reference relation is not mentioned

All of the mentioned

All of the mentioned

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 8

Time: 00:00:00
Which of the following is used to input the entry and give the result in a variable in a procedure?

Put and get

Put and get

Get and put

Get and put

Out and In

Out and In

In and out

In and out

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 9

Time: 00:00:00
The format for compound statement is
a) Begin ……. end
b) Begin atomic……. end
c) Begin ……. repeat
d) Both Begin ……. end and Begin atomic……. end

a

a

b

b

c

c

d

d

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 10

Time: 00:00:00
A stored procedure in SQL is a___________

Block of functions

Block of functions

Group of Transact-SQL statements compiled into a single execution plan.

Group of Transact-SQL statements compiled into a single execution plan.

Group of distinct SQL statements.

Group of distinct SQL statements.

None of the mentioned

None of the mentioned

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

["0","40","60","80","100"]
["Need more practice! \r\n \r\n","Keep trying! \r\n \r\n","Not bad! \r\n \r\n","Good work! \r\n \r\n","Perfect! \r\n \r\n"]

Personalized Analytics only Availble for Logged in users

Analytics below shows your performance in various Mocks on PrepInsta

Your average Analytics for this Quiz

Rank

-

Percentile

0%

Get over 200+ Courses under One Subscription

mute

Don’t settle Learn from the Best with PrepInsta Prime Subscription

Learn from Top 1%

One Subscription, For Everything

The new cool way of learning and upskilling -

Limitless Learning

One Subscription access everything

Job Assistance

Get Access to PrepInsta Prime

Top Faculty

from FAANG/IITs/TOP MNC's

Get over 200+ course One Subscription

Courses like AI/ML, Cloud Computing, Ethical Hacking, C, C++, Java, Python, DSA (All Languages), Competitive Coding (All Languages), TCS, Infosys, Wipro, Amazon, DBMS, SQL and others.

Comments