Mark Us V24

Mark Us V24

Professional Development

30 Qs

quiz-placeholder

Similar activities

Collections

Collections

University - Professional Development

30 Qs

Types and IO in C++

Types and IO in C++

University - Professional Development

26 Qs

Python Quiz

Python Quiz

Professional Development

27 Qs

Blind Coding Round 1

Blind Coding Round 1

Professional Development

30 Qs

UG Code Breaker Challenge Round-1

UG Code Breaker Challenge Round-1

Professional Development

30 Qs

Java Basics

Java Basics

Professional Development

25 Qs

C Programming

C Programming

University - Professional Development

30 Qs

MicroArd_Final Quiz

MicroArd_Final Quiz

Professional Development

30 Qs

Mark Us V24

Mark Us V24

Assessment

Quiz

Computers

Professional Development

Hard

Created by

Rukumani CT_PG

Used 1+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

There are the following statements that are given below, which of them are correct about inline function?

A.     Inline functions are a special type of function, which is used to reduce function call overhead.

B.      If we mark a function as an inline, then the definition of that function is substituted at the place of call.

C.     We cannot make every function as an inline function.

D. Inline is the request to the compile.

A & B

A & C

A,B,C

A,B,C,D

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What will be output if you will compile and execute the following c code?

#include<stdio.h>

int main(){

double far* p,q;

printf("%d",sizeof(p)+sizeof q);

return 0;

}

3.

FILL IN THE BLANK QUESTION

1 min • 1 pt

ANSWER: A

What will be output if you will compile and execute the  following c code?

 

#include<stdio.h>

#define max 5;

int main(){

int i=0;

i=max++;

printf("%d",i++);

return 0; 

}

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be output if you will compile and execute the following c code?

#include<stdio.h>

int main(){

int i=10;

static int x=i;

if(x==i)

else if(x>i)

else

printf("Equal");

printf("Greater than");

printf("Less than");

return 0;

}

  1. Equal

  1. Greater than

  1. Less than

  1. Compiler error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be output if you will compile and execute the  following c code?

#include<stdio.h>

char c;

char c;

int main(){

int array[]={10,20,30,40};

printf("%d",-2[array]);

return 0;

}

-60

-30

60

Garbage Value

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What will be output if you will compile and execute the  following c code?

#include<stdio.h>

#define call(x,y) x##y

int main(){

int x=5,y=10,xy=20;

printf("%d",xy+call(x,y));

return 0;

}

7.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What will be output if you will compile and execute the  following c code?

#include <stdio.h>

#include <string.h>

int main(){

 int i=0;

 for(;i<=2;)

 printf(" %d",++i);

return 0;

}

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?