PSUEDOCODE 2 CAPGEMINI

PSUEDOCODE 2 CAPGEMINI

Professional Development

25 Qs

quiz-placeholder

Similar activities

Hành trang bước ra thế giới

Hành trang bước ra thế giới

Professional Development

20 Qs

1r_CFGS_DOCUM_T7

1r_CFGS_DOCUM_T7

Professional Development

20 Qs

MGNF-14

MGNF-14

Professional Development

20 Qs

LPO - Trace e SIGA

LPO - Trace e SIGA

Professional Development

20 Qs

Petrochina Quiz

Petrochina Quiz

Professional Development

20 Qs

Quiz Latihan Sesi Sore

Quiz Latihan Sesi Sore

Professional Development

20 Qs

BIBLE BHIEBONG LG PART 2

BIBLE BHIEBONG LG PART 2

Professional Development

20 Qs

Washing Machine Post CT Test

Washing Machine Post CT Test

Professional Development

20 Qs

PSUEDOCODE 2 CAPGEMINI

PSUEDOCODE 2 CAPGEMINI

Assessment

Quiz

Other, Professional Development

Professional Development

Practice Problem

Medium

Created by

AMAN JOLLY

Used 53+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

int sum (int A[], int n)


{


int sum = 0, i;


for (i = 0; i < n; i++)


sum = sum + A[i];


return sum;


}// sizeof(int) = 2 bytes

2n+8

2n+2

2n+4

2n

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Question: Point out the error in the program?

#include<stdio.h>

int main()

{

char ch;

int i;

scanf("%c", &i);

scanf("%d", &ch);

printf("%c %d", ch, i);

return 0;

}

Error: suspicious char to in conversion in scanf()

Error: we may not get input for second scanf() statement

No error

None of above

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Question: Consider the following iterative implementation to find the factorial of a number:

int main()


{

int n = 6, i;

int fact = 1;

for(i=1;i<=n;i++)

_________;

printf("%d",fact);

return 0;

}

Which of the following lines should be inserted to complete the above code?

fact = fact + i

fact = fact * i

i = i * fact

i = i + fact

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Question: What is the output of this C code?

#include <stdio.h>


int main()

{

int i=12;

int *p =&i;

printf(“%d\n”,*p++);

}

Address of i++

12

Garbage value

Address of i

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Question: Convert the following 211 decimal number to 8-bit binary?

11011011

11001011

11010011

11010011

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Question: A NAND gate has:

LOW inputs and a HIGH output

LOW inputs and a LOW output

HIGH inputs and a HIGH output

None of these

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Question: Comment on the output of this C code?

#include <stdio.h>

int main()

{

int a = 1;

switch (a)

case 1:

printf("%d", a);

case 2:

printf("%d", a);

case 3:

printf("%d", a);

default:

printf("%d", a);

}

No error, output is 1111

No error, output is 1

Compile time error, no break statements

Compile time error, case label outside switch statement

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?