PSUEDOCODE 2 CAPGEMINI

Flashcard
•
Other, Professional Development
•
Professional Development
•
Hard
Wayground Content
FREE Resource
Student preview

24 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What is the time complexity of the function int sum (int A[], int n)
that sums the elements of an array? Options: 2n+8, 2n+2, 2n+4, 2n
Back
2n+8
2.
FLASHCARD QUESTION
Front
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;
}
Back
Error: we may not get input for second scanf() statement
3.
FLASHCARD QUESTION
Front
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 line should be inserted to complete the above code?
Back
fact = fact * i
4.
FLASHCARD QUESTION
Front
What is the output of this C code?
#include <stdio.h>
int main()
{
int i=12;
int *p =&i;
printf(“%d\n”,*p++);
}
Back
12
5.
FLASHCARD QUESTION
Front
Convert the following 211 decimal number to 8-bit binary?
Back
11010011
6.
FLASHCARD QUESTION
Front
A NAND gate has:
Back
LOW inputs and a HIGH output
7.
FLASHCARD QUESTION
Front
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);
}
Back
Compile time error, case label outside switch statement
Create a free account and access millions of resources
Similar Resources on Wayground
19 questions
AVINYA 2K25

Flashcard
•
University
18 questions
Java Method

Flashcard
•
12th Grade
24 questions
PSUEDOCODE 2 CAPGEMINI

Flashcard
•
Professional Development
15 questions
Introduction to Java

Flashcard
•
University
25 questions
Java temas 1-4

Flashcard
•
University
19 questions
Electronic components

Flashcard
•
Professional Development
15 questions
u-Substitution

Flashcard
•
University
20 questions
Control Structures

Flashcard
•
University
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
5 questions
Setting goals for the year

Quiz
•
Professional Development
7 questions
How to Email your Teacher

Quiz
•
Professional Development
20 questions
Employability Skills

Quiz
•
Professional Development